Part Number Hot Search : 
NJU26 36000 AK55GB80 N7002 CS5550 CD895ZK R500L CP2129
Product Description
Full Text Search
 

To Download DS3160 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 DS3160
JT 6312kbps Secondary-Rate Line Interface Unit and Framer/Formatter
www.maxim-ic.com
FEATURES
Single-chip JT 6312kbps secondary-rate line interface unit (LIU) and framer/formatter Supports G.704 and NTT J2 frame formats Transmit and receive path-monitor outputs B8ZS encoder and decoder Generates and detects alarms Integrated HDLC controller handles LAPD messages without host intervention Integrated BERT supports performance monitoring Supports 8-bit or 16-bit control 3.3V supply with 5V tolerant I/O; low-power CMOS Available in 100-pin LQFP package IEEE 1149.1 JTAG support
FUNCTIONAL DIAGRAM
LINE INTERFACE UNIT FRAMER AND FORMATTER
CONTROL AND STATUS PORT
APPLICATIONS
Routers Switches Test Equipment Aggregators/Concentrators PBX Base Stations
ORDERING INFORMATION
DS3160 100-pin LFQP 0C to +70C DS3160C01 100-pin LFQP 0C to +85C DS3160N 100-pin LFQP -40C to +85C
DESCRIPTION
The DS3160 device, which combines a line interface unit (LIU) with a formatter and framer, is compliant with the JT 6312kbps secondary-rate user-network interface and supports the G.704 and NTT J2 frame formats. A full-featured LIU with integrated jitter attenuator supports a software-programmable framer and formatter. Framer features include alarm and error detection, on-chip HDLC controller for processing of M-bit information, and programmable timeslot data-enable signal for 1.5Mbps, 3Mbps, 4.5Mbps, and 6Mbps frame formats. The formatter adds the required overhead to the user data and has the additional capability of generating diagnostic errors. Loopback features, together with an on-chip bit-error-rate test (BERT) function, allow easy isolation and monitoring of network segments.
Note: Some revisions of this device may incorporate deviations from published specifications known as errata. Multiple revisions of any device may be simultaneously available through various sales channels. For information about device errata, click here: http://www.maxim-ic.com/errata. 1 of 107 062102
DS3160
1. MAIN FEATURES Line Interface Unit
Integrated transmit and receive 6312kbps line interface Requires no special external components other than 1:1 transformers Transmit and receive signal-monitor outputs Transmit, receive, and monitor paths use the same transformer (1:1) Nominal pulse waveform: 2Vo-p 0.3V, 50% pulse width Electrical characteristics in accordance with TTC Standard JT-G703 Adaptive receive equalizer adapts to coax cable loses from 0 to 15dB Performs clock/data recovery and wave shaping Transmit line-driver monitoring checks for faulty transmitter or a shorted output Jitter attenuator that can be placed either in the receive path or the transmit path or disabled On-board B8ZS coder/decoder with the option to be disabled Analog and digital loopbacks Analog loss of signal detector Tri-state-capable transmit and signal monitor line drivers for power management options Commercial temperature operating range: 0C to +70C
Framer/Formatter
Provides frame synchronization and insertion Frame structure in accordance with TTC Standard JT-G704 Frame alignment and cyclic redundancy check (CRC) in accordance with TTC Standard JT-G706 Alarm detection and generation AIS and RAI generation Supports maintenance data link using an integrated HDLC controller Supports generation of gapped receive and transmit clocks for interface to devices that only need access to selected timeslots Programmable fractional circuit rates: - TS1-24 (1.5Mbps) - TS1-48 (3Mbps) - TS1-72 (4.5Mbps) - TS1-96 (6Mbps)
Path-Maintenance Data-Link HDLC Controller
Designed to handle multiple LAPD messages without host intervention 256-byte receive and transmit buffers Handles all of the normal Layer 2 tasks such as zero stuffing/destuffing, CRC generation/checking, abort generation/checking, flag generation/detection, and byte alignment Programmable high and low watermarks for the FIFO
2 of 107
DS3160
BERT

Can generate and detect the pseudorandom patterns of 27 - 1, 211 - 1, 215 - 1, and quasirandom signal source (QRSS) as well as repetitive patterns from 1 to 32 bits in length Large error counter (24 bits) allows testing to proceed for long periods without host intervention Errors can be inserted into the generated BERT patterns for diagnostic purposes
Diagnostics
Diagnostic loopbacks (transmit to receive) Line loopbacks (receive to transmit) Payload loopback Error counters for bipolar violations, code violations, loss of frame (LOF), framing bit errors, and CRC errors Error counters can be either updated automatically on 1-second boundaries as timed by the DS3160, or by software control, or by an external hardware pulse Can insert the bipolar violation errors and framing bit errors Inserted errors can be either controlled by software or by an external hardware pulse Generates loss of frame
Control Port
Nonmultiplexed or multiplexed 16-bit control port (with an optional 8-bit mode) Intel and Motorola bus compatible
Packaging and Power
3.3V low-power CMOS with 5V tolerant inputs and outputs 100-pin LQFP package IEEE 1149.1 JTAG test port
3 of 107
DS3160
Table 1A. APPLICABLE STANDARDS
1) Telecommunications Technique Council (TTC) JT-G.703, 1989 "Physical/Electrical Characteristics of Hierarchical Digital Interfaces" 2) Telecommunications Technique Council (TTC) JT-G.704, 1989 "Synchronous Frame Structures Used at Primary and Secondary Hierarchical Levels" 3) Telecommunications Technique Council (TTC) JT-G.706, 1989 "Frame Synchronization and CRC Procedure" 4) International Telecommunication Union (ITU) G.703, April 1991 "Physical/Electrical Characteristics of Hierarchical Digital Interfaces" 5) International Telecommunication Union (ITU) G.704, July 1995 "Synchronous Frame Structures Used at 1544kbps, 6312kbps, 2048kbps, 8488kbps, and 44736kbps Hierarchical Levels" 6) International Telecommunication Union (ITU) G.775, November 1994 "Loss-of-Signal (LOS) and Alarm Indication Signal (AIS) Defect Detection and Clearance Criteria" 7) International Telecommunication Union (ITU) G.783, January 1994 "Characteristics of Synchronous Digital Hierarchy (SDH) Equipment Functional Blocks" 8) International Telecommunication Union (ITU) O.151, October 1992 "Error Performance Measuring Equipment Operating at the Primary Rate and Above" 9) International Telecommunication Union (ITU) O.153, October 1992 "Basic Parameters for the Measurement of Error Performance at Bit Rates Below the Primary Rate" 10) International Telecommunication Union (ITU) O.161, 1984 "In-Service Code Violation Monitors for Digital Systems"
4 of 107
DS3160
Figure 1A. BLOCK DIAGRAM
MCLK
RxMON+ RxMON-
RECEIVE MONITOR
DS3160
FRSOF FRCLK Rx+ RxJT2 LIU Tx+ TxJT2 FRAMER/ FORMATTER FRD FRDEN FRMECU FRLOS FRLOF FTMEI FTDEN FTD FTCLK FTSOF
TxMON+
TxMON-
JTDI
TRANSMIT MONITOR
JTAG TEST BLOCK
JTRST
JTCLK JTMS JTDO
CPU INTERFACE AND GLOBAL CONFIGURATION (ROUTED TO ALL BLOCKS)
CA0- CD0- CWR CRD CA7 CD15 (CR W ) ( CDS )
CCS
CALE CIM CINT
CMS TEST
RST
5 of 107
DS3160
Figure 1B. LINE INTERFACE UNIT (LIU) BLOCK DIAGRAM
MCLK
RxMON+
LINE DRIVER WAVESHAPING
RxMON-
FILTER/ EQUALIZER (ANALOG LOSS OF SIGNAL DETECT)
CLOCK AND DATA RECOVERY
JITTER ATTENUATOR (CAN BE PLACED IN EITHER THE RECEIVE PATH OR THE TRANSMIT PATH)
Rx+ Rx-
RPOS RNEG RCLK
ANALOG LOOPBACK
SQUELCH
DRIVER MONITOR
Tx+ Tx-
LINE DRIVER
WAVESHAPING
TNEG TPOS TCLK
TxMON+ TxMON-
LINE DRIVER
DS3160
6 of 107
DS3160
Figure 1C. FRAMER AND FORMATTER BLOCK DIAGRAM
JT2 FRAMER
RECEIVE BERT BERT MUX
RPOS
B8ZS DECODER AND BPV DETECTOR ALARM AND ERROR DETECTION
FRSOF
SIGNAL INVERSION CONTROL
HDLC DATA LINK
JT2 FRAMER
RNEG
FRCLK FRD FRDEN FRLOS FRLOF FRMECU
RCLK
ERROR COUNTERS
PAYLOAD LOOPBACK
DIAGNOSTIC LOOPBACK
LINE LOOPBACK
HDLC CONTROLLER WITH 256-BYTE BUFFER
DS3160
FTMEI
FORCE DATA CONTROL/AIS GENERATION
TPOS
B8ZS CODER AND BPV INSERTION
SIGNAL INVERSION CONTROL DIAGNOSTIC ERROR INSERTION OVERHEAD GENERATION Mux
FTDEN FTD
HLC DATA LINK
TNEG
LOSS-OF-TRANSMIT CLOCK
FTCLK FTSOF
SYNC CONTROL
TCLK
JT2 FORMATTER
BERT MUX TRANSMIT BERT
7 of 107
DS3160
TABLE OF CONTENTS
1. MAIN FEATURES...................................................................................................................................2 2. SIGNAL DESCRIPTION .....................................................................................................................10 2.1 Overview/Signal Pin List......................................................................................................................10 2.2 CPU Bus Signal Description................................................................................................................15 2.3 Receive Framer Signal Description.......................................................................................................17 2.4 Transmit Formatter Signal Description..................................................................................................20 2.5 Receive LIU Signal Description............................................................................................................22 2.6 Transmit LIU Signal Description...........................................................................................................23 2.7 JTAG Signal Description......................................................................................................................24 2.8 Supply, Factory Test, and Reset Signal Descriptions.............................................................................25 3. MEMORY MAP AND REGISTER NOMENCLATURE..................................................................27 3.1 Memory Map ......................................................................................................................................27 3.2 Register Description.............................................................................................................................28 4. MASTER DEVICE CONFIGURATION AND STATUS/INTERRUPT............................................29 4.1 Master Reset and ID Register Descriptions ..........................................................................................29 4.2 Master Configuration Registers Description..........................................................................................30 4.3 Master Status and Interrupt Register Descriptions.................................................................................35 5. FRAMER ...............................................................................................................................................43 5.1 General Description..............................................................................................................................43 5.2 Framer Control Register Description.....................................................................................................44 5.3 Framer Status and Interrupt Register Descriptions ................................................................................53 5.4 Performance Error Counters ................................................................................................................59 6. BERT......................................................................................................................................................61 6.1 General Description.............................................................................................................................61 6.2 BERT Register Description..................................................................................................................61 7. HDLC CONTROLLER ........................................................................................................................71 7.1 General Description.............................................................................................................................71 7.2 HDLC Control and FIFO Register Description ....................................................................................73
8 of 107
DS3160 7.3 HDLC Status and Interrupt Register Description..................................................................................77 8. LINE INTERFACE UNIT ....................................................................................................................82 9. JTAG ......................................................................................................................................................86 9.1 JTAG Description................................................................................................................................86 9.2 TAP Controller State Machine Description...........................................................................................87 9.3 Instruction Register and Instructions .....................................................................................................90 9.4 Test Registers......................................................................................................................................91 10. TEST REGISTERS .............................................................................................................................94 11. AC CHARACTERISTICS ..................................................................................................................95 ABSOLUTE MAXIMUM RATINGS* ..............................................................................................95 AC CHARACTERISTICS--FRAMER PORTS ..............................................................................96 AC CHARACTERISTICS--CPU BUS ............................................................................................98 AC CHARACTERISTICS--JTAG TEST PORT INTERFACE..................................................103 12. MECHANICAL DIMENSIONS......................................................................................................105 13. J2 FRAME FORMAT ......................................................................................................................106 14. PROGRAMMING GUIDE AND OPERATIONAL NOTES ........................................................107 14.1 Power-Up/Reset Discussion............................................................................................................107
9 of 107
DS3160
2. SIGNAL DESCRIPTION 2.1 Overview/Signal Pin List
This section describes the input and output signals on the DS3160. Signal names follow a convention that is shown in Table 2.1A. Table 2.1B lists all of the signals, their signal type, description, and pin location.
Table 2.1A. SIGNAL NAMING CONVENTION
FIRST LETTERS C FR FT Rx Tx J SIGNAL CATEGORY CPU/Host Control Access Port Receive Framer Transmit Formatter Receive LIU Transmit LIU JTAG Test Port SECTION 2.2 2.3 2.4 2.5 2.6 2.7
10 of 107
DS3160
Table 2.1B. SIGNAL DESCRIPTION/PIN LIST (PRELIMINARY PIN ASSIGNMENT, SORTED BY PIN NUMBER)
PIN 1, 11, 18, 19, 24, 25, 88, 100 2 3 4, 5, 14, 22, 23, 31, 32, 90 6 7 8 9 10 12 13 15 16 17 20 21 26 27 28 29 30 33 34 35 36 37 38, 52, 75, 86 39 40 41 42 43 44 45 46 47 48, 60, 66, 79 49 50 51 53 54 55 56 SYMBOL AVDD Rx+ RxAVSS LPOSO LNEGO LCLKO TESTIO1 TESTIO2 RxMON+ RxMONLPOSI LNEGI LCLKI Tx+ TxRST
TEST
TYPE -- I I -- O O O I/O I/O O O I I I O O I I I O O I I O I I -- I I I I I I I I I -- I/O I/O I/O I/O I/O I/O I/O
FUNCTION Positive Supply, 3.3V (5%) Receive Positive or NRZ Data Input Receive Negative Data Input Ground LIU POS Factory Test Signal LIU NEG Factory Test Signal LIU CLK Factory Test Signal Factory Test I/O 1 Factory Test I/O 2 Receive-Monitor Positive-Data Output Receive-Monitor Negative-Data Output LIU POS Factory Test Signal LIU NEG Factory Test Signal LIU CLK Factory Test Signal Transmit Positive or NRZ Data Output Transmit Negative Data Output Reset Factory Test Input Tri-State Output Pins Enable Transmit-Monitor Positive-Data Output Transmit-Monitor Negative-Data Output JTAG IEEE 1149.1 Test Reset JTAG IEEE 1149.1 Test Mode Select JTAG IEEE 1149.1 Test Serial Data Output JTAG IEEE 1149.1 Test Serial Data Input JTAG IEEE 1149.1 Test Serial Clock Positive Supply, 3.3V (5%) CPU Bus Address Latch Enable CPU Bus Address Bit 0, LSB CPU Bus Address Bit 1 CPU Bus Address Bit 2 CPU Bus Address Bit 3 CPU Bus Address Bit 4 CPU Bus Address Bit 5 CPU Bus Address Bit 6 CPU Bus Address Bit 7, MSB Ground CPU Bus Data Bit 0, LSB CPU Bus Data Bit 1 CPU Bus Data Bit 2 CPU Bus Data Bit 3 CPU Bus Data Bit 4 CPU Bus Data Bit 5 CPU Bus Data Bit 6
11 of 107
HIZ
TxMON+ TxMONJTRST
JTMS JTDO JTDI JTCLK DVDD CALE CA0 CA1 CA2 CA3 CA4 CA5 CA6 CA7 DVSS CD0 CD1 CD2 CD3 CD4 CD5 CD6
DS3160
PIN 57 58 59 61 62 63 64 65 67 68 69 70 71 72 73 74 76 77 78 80 81 82 83 84 85 87 89 91 92 93 94 95 96 97 98 99 SYMBOL CD7 CD8 CD9 CD10 CD11 CD12 CD13 CD14 CD15
CCS CRD ( CDS ) CRW (CR /W ) CINT
CIM CMS FTMEI FTSOF FTDEN FTD FRMECU FRLOS FRLOF FRSOF FRDEN FRD FRCLK FTCLK MCLK
TENA2 TENA1
TYPE I/O I/O I/O I/O I/O I/O I/O I/O I/O I I I O I I I I/O O I I O O O O O O I I I I O O O I I I
FUNCTION CPU Bus Data Bit 7 CPU Bus Data Bit 8 CPU Bus Data Bit 9 CPU Bus Data Bit 10 CPU Bus Data Bit 11 CPU Bus Data Bit 12 CPU Bus Data Bit 13 CPU Bus Data Bit 14 CPU Bus Data Bit 15, MSB CPU Bus Chip Select CPU Bus Read Enable (CPU Bus Data Strobe) CPU Bus Write Enable (CPU Bus Read/Write Select) CPU Bus Interrupt CPU Bus Intel/Motorola Bus Select CPU Bus Mode Select Transmit Formatter Manual Error Insert Pulse Transmit Formatter Start-of-Frame Pulse Transmit Formatter Data-Enable Output Transmit Formatter Data Input Receive Framer Manual Error-Counter Update Receive Framer Loss-of-Signal output Receive Framer Loss-of-Frame output Receive Framer Start-of-Frame Pulse Receive Framer Data-Enable Output Receive Framer Data Output Receive Framer Clock Output Transmit Formatter Clock Input LIU Master Clock Factory Test Enable 2 Factory Test Enable 1 Digital CLK Factory Test Signal Digital NEG Factory Test Signal Digital POS Factory Test Signal Digital CLK Factory Test Signal Digital NEG Factory Test Signal Digital POS Factory Test Signal
DCLKO DNEGO DPOSO DCLKI DNEGI DPOSI
12 of 107
DS3160
Table 2.1C. SIGNAL DESCRIPTION/PIN LIST (PRELIMINARY PIN ASSIGNMENT, SORTED BY SIGNAL)
PIN 1, 11, 18, 19, 24, 25, 88, 100 4, 5, 14, 22, 23, 31, 32, 90 40 41 42 43 44 45 46 47 39 68 49 50 61 62 63 64 65 67 51 53 54 55 56 57 58 59 72 71 73 69 70 97 94 98 95 99 96 38, 52, 75, 86 48, 60, 66, 79 87 85 84 SYMBOL AVDD AVSS CA0 CA1 CA2 CA3 CA4 CA5 CA6 CA7 CALE
CCS
TYPE -- -- I I I I I I I I I I I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I O I I I I O I O I O -- -- O O O
FUNCTION Positive Supply, 3.3V (5%) Ground CPU Bus Address Bit 0, LSB CPU Bus Address Bit 1 CPU Bus Address Bit 2 CPU Bus Address Bit 3 CPU Bus Address Bit 4 CPU Bus Address Bit 5 CPU Bus Address Bit 6 CPU Bus Address Bit 7, MSB CPU Bus Address Latch Enable CPU Bus Chip Select CPU Bus Data Bit 0, LSB CPU Bus Data Bit 1 CPU Bus Data Bit 10 CPU Bus Data Bit 11 CPU Bus Data Bit 12 CPU Bus Data Bit 13 CPU Bus Data Bit 14 CPU Bus Data Bit 15, MSB CPU Bus Data Bit 2 CPU Bus Data Bit 3 CPU Bus Data Bit 4 CPU Bus Data Bit 5 CPU Bus Data Bit 6 CPU Bus Data Bit 7 CPU Bus Data Bit 8 CPU Bus Data Bit 9 CPU Bus Intel/Motorola Bus Select CPU Bus Interrupt CPU Bus Mode Select CPU Bus Read Enable (CPU Bus Data Strobe) CPU Bus Write Enable (CPU Bus Read/Write Select) Digital CLK Factory Test Signal Digital CLK Factory Test Signal Digital NEG Factory Test Signal Digital NEG Factory Test Signal Digital POS Factory Test Signal Digital POS Factory Test Signal Positive Supply, 3.3V (5%) Ground Receive Framer Clock Output Receive Framer Data Output Receive Framer Data-Enable Output
13 of 107
CD0 CD1 CD10 CD11 CD12 CD13 CD14 CD15 CD2 CD3 CD4 CD5 CD6 CD7 CD8 CD9 CIM
CINT
CMS CRD ( CDS ) CWR (CR /W ) DCLKI DCLKO DNEGI DNEGO DPOSI DPOSO DVDD DVSS FRCLK FRD FRDEN
DS3160
PIN 82 81 80 83 89 78 77 74 76 28 37 36 35 34 33 17 8 16 7 15 6 91 26 3 2 13 12 93 92 27 9 10 21 20 30 29 SYMBOL FRLOF FRLOS FRMECU FRSOF FTCLK FTD FTDEN FTMEI FTSOF
HIZ
JTCLK JTDI JTDO JTMS
JTRST
LCLKI LCLKO LNEGI LNEGO LPOSI LPOSO MCLK
RST
TYPE O O I O I I O I I/O I I I O I I I O I O I O I I I I O O I I I I/O I/O O O O O
RxRx+ RxMONRxMON+
TENA1 TENA2 TEST
TESTIO1 TESTIO2 TxTx+ TxMONTxMON+
FUNCTION Receive Framer Loss-of-Frame Output Receive Framer Loss-of-Signal Output Receive Framer Manual Error-Counter Update Receive Framer Start-of-frame Pulse Transmit Formatter Clock Input Transmit Formatter Data Input Transmit Formatter Data-Enable Output Transmit Formatter Manual Error-Insert Pulse Transmit Formatter Start-of-Frame Pulse Tri-State Output Pins Enable JTAG IEEE 1149.1 Test Serial Clock JTAG IEEE 1149.1 Test Serial Data Input JTAG IEEE 1149.1 Test Serial Data Output JTAG IEEE 1149.1 Test Mode Select JTAG IEEE 1149.1 Test Reset LIU CLK Factory Test Signal LIU CLK Factory Test Signal LIU NEG Factory Test Signal LIU NEG Factory Test Signal LIU POS Factory Test Signal LIU POS Factory Test Signal LIU Master Clock Reset Receive Negative Data Input Receive Positive or NRZ Data Input Receive Monitor Negative Data Output Receive Monitor Positive Data Output Factory Test Enable 1 Factory Test Enable 2 Factory Test Input Factory Test I/O 1 Factory Test I/O 2 Transmit Negative Data Output Transmit Positive or NRZ Data Output Transmit Monitor Negative Data Output Transmit Monitor Positive Data Output
14 of 107
DS3160
2.2 CPU Bus Signal Description
Signal Name: CMS Signal Description: CPU Bus Mode Select Signal Type: Input This signal should be connected low when the device is to be operated as a 16-bit bus. This signal should be connected high when the device is to be operated as an 8-bit bus. 0 = CPU bus is in the 16-bit mode 1 = CPU bus is in the 8-bit mode Signal Name: CIM Signal Description: CPU Bus Intel/Motorola Bus Select Signal Type: Input The signal determines whether the CPU bus operates in the Intel mode (CIM = 0) or the Motorola mode (CIM = 1). The signal names in parenthesis are operational when the device is in the Motorola mode. 0 = CPU bus is in the Intel mode 1 = CPU bus is in the Motorola mode Signal Name: CD0 to CD15 Signal Description: CPU Bus Data Bus Signal Type: Input/Output (Tri-State Capable) The external host configures the device and obtains real-time status information about the device through these signals. When reading data from the CPU bus, these signals are outputs. When writing data to the CPU bus, these signals become inputs. When the CPU bus is operated in the 8-bit mode (CMS = 1), CD8 to CD15 are inactive and should be connected low. Signal Name: CA0 to CA7 Signal Description: CPU Bus Address Bus Signal Type: Input These input signals determine which internal device configuration register that the external host wishes to access. When the CPU bus is operated in the 16-bit mode (CMS = 0), CA0 is inactive and should be connected low. When the CPU bus is operated in the 8-bit mode (CMS = 1), CA0 is the least significant address bit. Signal Name: CWR (CR /W ) Signal Description: CPU Bus Write Enable (CPU Bus Read/Write Select) Signal Type: Input In Intel mode (CIM = 0), this signal determines when data is to be written to the device. In Motorola mode (CIM = 1), this signal is used to determine whether a read or write is to occur. Signal Name: CRD ( CDS ) Signal Description: CPU Bus Read Enable (CPU Bus Data Strobe) Signal Type: Input In Intel mode (CIM = 0), this signal determines when data is to be read from the device. In Motorola mode (CIM = 1), a rising edge is used to write data into the device.
15 of 107
DS3160 Signal Name: CINT Signal Description: CPU Bus Interrupt Signal Type: Output This output signal is driven low or open (float) during normal operation. It is driven low if one or more unmasked interrupt sources within the device are active. The signal remains low until the interrupt is either serviced or masked. This pin can be driven high in JTAG test modes. Signal Name: CCS Signal Description: CPU Bus Chip Select Signal Type: Input This active-low signal must be asserted for the device to accept a read or write command from an external host. Signal Name: CALE Signal Description: CPU Bus Address Latch Enable Signal Type: Input This input signal controls a latch that exists on the CA0 to CA7 inputs. When CALE is high, the latch is transparent. The falling edge of CALE causes the latch to sample and hold the CA0 to CA7 inputs. In nonmultiplexed bus applications, CALE should be connected high. In multiplexed bus applications, CA[7:0] should be connected to CD[7:0] and the falling edge of CALE latches the address.
16 of 107
DS3160
2.3 Receive Framer Signal Description
Signal Name: FRSOF Signal Description: Receive Framer Start-of-Frame Sync Signal Signal Type: Output This signal pulses for one FRCLK period to indicate a frame or multiframe boundary. When configured in the frame mode, FRSOF indicates the position of the first bit (bit position 1) in each J2 frame. When configured in the multiframe mode, FRSOF indicates the position of the first bit (bit position 1) in each J2 multiframe. This signal can be configured to be either active high (normal mode) or active low (inverted mode). See Figure 2.3B. Signal Name: FRCLK Signal Description: Receive Framer Clock Signal Type: Output This signal outputs the clock that is used to pass data through the receive framer. It can be sourced from either the recovered receive clock, MCLK, or FTCLK inputs. During an LIU loss of signal (LIULOS = 1), the clock applied at MCLK (or FTCLK if MCLK is connected high) appears at this signal. This signal is used to clock the receive data out of the device at the FRD output. Data can be either updated on a rising edge (normal mode) or a falling edge (inverted mode). Signal Name: FRD Signal Description: Receive Framer Serial Data Signal Type: Output This signal outputs data from the receive framer. This signal is updated either on the rising edge of FRCLK (normal mode) or the falling edge of FRCLK (inverted mode). In addition, this signal can be internally inverted. FRD is forced to all 1's during a LOS and/or LOF condition. Signal Name: FRDEN Signal Description: Receive Framer Serial Data-Enable or Gapped Clock Output Signal Type: Output This signal can be configured to either output a data enable or a gapped clock. In the data-enable mode, this signal goes active when enabled timeslots are available at the FRD output and is inactive when disabled timeslots or F-bits are being output at the FRD output. In the gapped clock mode, this signal transitions for each bit contained in enabled timeslots and is suppressed for each bit of disabled timeslots and the F-bits. This signal can be internally inverted (Figure 2.3A). Signal Name: FRMECU Signal Description: Receive Framer Manual Error-Counter Update Strobe Signal Type: Input The DS3160 can be configured to use this asynchronous input to initiate an updating of the internal error counters. A 0-to-1 transition on this input causes the device to begin loading the internal error counters with the latest error counts. This signal must be returned low before a subsequent updating of the error counters can occur. The host must wait at least 100ns before reading the error counters to allow the device time to update the error counters.
17 of 107
DS3160 Signal Name: FRLOS Signal Description: Receive Framer Loss of Signal Signal Type: Output This signal is forced high when the receive framer is in a loss-of-signal (LOS) state. It remains high as long as the LOS state persists and returns low when the framer exits the LOS state. Signal Name: FRLOF Signal Description: Receive Framer Loss of Frame Signal Type: Output This signal is forced high when the receive framer is in a loss-of-frame (LOF) state. It remains high as long as the LOF state persists and returns low when the framer synchronizes.
Figure 2.3A. RECEIVE FRAMER TIMING
FRCLK NORMAL MODE
FRCLK INVERTED MODE
LAST BIT OF LAST ACTIVE TIMESLOT (NOTE 2) LAST BIT OF FRAMING OVERHEAD, BIT 789 FIRST BIT OF THE FRAME, BIT 1
FRD (NOTE 1)
FRDEN DATA STROBE MODE (NOTE 1)
FRDEN GAPPED CLOCK MODE (NOTE 1)
NOTES:
1) FRCLK, FRD, and FRDEN can be inverted by Master Configuration Register 2 (MC2). 2) Valid last active timeslots include TS24, TS48, TS72, and TS96.
18 of 107
DS3160
Figure 2.3B. RECEIVE FRAMER TIMING
FRCLK NORMAL MODE
FRCLK INVERTED MODE
LAST BIT OF THE FRAME, BIT 789 FIRST BIT OF FRAME, BIT 1
FRD (SEE NOTE)
FRSOF (SEE NOTE)
NOTES:
1) FRCLK, FRD, and FRSOF can be inverted by Master Configuration Register 2 (MC2).
19 of 107
DS3160
2.4 Transmit Formatter Signal Description
Signal Name: FTSOF Signal Description: Transmit Formatter Start-of-Frame Sync Signal Signal Type: Output/Input (with internal 10k pullup) This signal can be configured to be either an input or output. When FTSOF is an input (default state), a 1-to-0 transition sets the first framing bit in each frame or multiframe. When FTSOF is an input, a pulse is not required at every frame or multiframe boundary. The FTSOF as an input must not be less than a frame cycle of 125s, or must be configured as an output. When this signal is an output, it pulses for one FTCLK period to indicate frame or multiframe boundary. When configured as an output and in the frame mode, FTSOF pulses high for one out of every 789 clock cycles, providing a frame reference. When configured as an output and in the multiframe mode, FTSOF pulses high for one out of every 3156 clock cycles, providing a multiframe reference. This signal can be configured to be either active high (normal mode) or active low (inverted mode) (Figure 2.4B). Signal Name: FTCLK Signal Description: Transmit Formatter Clock Signal Type: Input An accurate 6.312MHz 30ppm clock should be applied at this signal. This signal is used to clock data into the transmit formatter. Transmit data can be clocked into the device either on a rising edge (normal mode) or a falling edge (inverted mode). Signal Name: FTD Signal Description: Transmit Formatter Serial Data Signal Type: Input This signal inputs data into the transmit formatter. This signal can be sampled either on the rising edge of FTCLK (normal mode) or the falling edge of FTCLK (inverted mode). In addition, the data input to this signal can be internally inverted. Signal Name: FTDEN Signal Description: Transmit Formatter Serial Data-Enable or Gapped Clock Output Signal Type: Output This signal can be configured to either output a data enable or a gapped clock and use FTSOF for an alignment reference or ignore FTSOF (free-running option, see ALTFTDEN in MC2). When using FTSOF as a reference and in the data enable mode, this signal goes active when data should be made available at the FTD input. When using FTSOF as a reference and in the gapped clock mode, this signal acts as a demand clock for the FTD input and it transitions for each bit of data needed at the FTD input and it is suppressed when the transmit formatter inserts overhead data and, therefore, no data is needed at the FTD input. When the free-running mode is enabled, there is no correlation of FTDEN and when data is made available at FTD. This signal can be internally inverted (Figure 2.4A). Signal Name: FTMEI Signal Description: Transmit Formatter Manual Error Insert Strobe Signal Type: Input The DS3160 can be configured to use this asynchronous input to cause errors to be inserted into the transmitted data stream. A 0-to-1 transition on this input causes the device to begin the process of causing errors to be inserted. This signal must be returned low before any subsequent errors can be generated. If this signal is not used, then it should be connected low.
20 of 107
DS3160
Figure 2.4A. TRANSMIT FORMATTER TIMING
FTCLK NORMAL MODE
FTCLK INVERTED MODE LAST BIT OF LAST ACTIVE TIMESLOT FTD (NOTE 1) LAST BIT OF FRAMING OVERHEAD, BIT 789 FIRST BIT OF THE FRAME, BIT 1
FTDEN DATA STROBE MODE (NOTE 1)
FTDEN GAPPED CLOCK MODE (NOTE 1)
NOTES:
1) FTCLK, FTD, and FTDEN can be inverted by Master Configuration Register 2 (MC2). 2) Valid last active timeslots include TS24, TS48, TS72, and TS96.
Figure 2.4B. TRANSMIT FORMATTER TIMING
FTCLK NORMAL MODE
FTCLK INVERTED MODE LAST BIT OF THE FRAME, BIT 789 FTD (SEE NOTE) FIRST BIT OF THE FRAME, BIT 1
FTSOF OUTPUT MODE (SEE NOTE)
FTSOF INPUT MODE (SEE NOTE)
NOTES:
1) FTD and FTSOF can be inverted by Master Configuration Register 2 (MC2).
21 of 107
DS3160
2.5 Receive LIU Signal Description
Signal Name: MCLK Signal Description: Master Clock Signal Type: Input The clock input at this signal is used by the clock-and-data recovery machine. A 6.312MHz 30ppm clock should be applied at this signal. The DS3160 requires a clock signal to always be present at MCLK for correct device operation. Signal Name: Rx+ Signal Description: Receive Analog Input Signal Type: Input This analog signal is coupled from the user-network interface by a 1:1 transformer. Signal Name: RxSignal Description: Receive Analog Input Signal Type: Input This analog signal is coupled from the user-network interface by a 1:1 transformer. Signal Name: RxMON+ Signal Description: Receive Monitor Analog Output Signal Type: Output This analog output drives the receive monitor port by a 1:1 transformer. Signal Name: RxMONSignal Description: Receive Monitor Analog Output Signal Type: Output This analog output drives the receive monitor port by a 1:1 transformer.
22 of 107
DS3160
2.6 Transmit LIU Signal Description
Signal Name: Tx+ Signal Description: Transmit Analog Output Signal Type: Output This analog output drives the user-network interface by a 1:1 transformer (Figure 8A). Signal Name: TxSignal Description: Transmit Analog Output Signal Type: Output This analog output drives the user-network interface by a 1:1 transformer (Figure 8A). Signal Name: TxMON+ Signal Description: Transmit Monitor Analog Output Signal Type: Output This analog output drives the transmit monitor port by a 1:1 transformer (Figure 8A). Signal Name: TxMONSignal Description: Transmit Monitor Analog Output Signal Type: Output This analog output drives the transmit monitor port by a 1:1 transformer (Figure 8A).
23 of 107
DS3160
2.7 JTAG Signal Description
Signal Name: JTCLK Signal Description: JTAG IEEE 1149.1 Test Serial Clock Signal Type: Input This signal is used to shift data into JTDI on the rising edge and out of JTDO on the falling edge. If not used, this signal should be pulled high. Signal Name: JTDI Signal Description: JTAG IEEE 1149.1 Test Serial Data Input Signal Type: Input (with internal 10k pullup) Test instructions and data are clocked into this signal on the rising edge of JTCLK. If not used, this signal should be left open-circuited. Signal Name: JTDO Signal Description: JTAG IEEE 1149.1 Test Serial Data Output Signal Type: Output Test instructions are clocked out of this signal on the falling edge of JTCLK. If not used, this signal should be left open-circuited. Signal Name: JTRST Signal Description: JTAG IEEE 1149.1 Test Reset Signal Type: Input (with internal 10k pullup) This signal is used to asynchronously reset the test access port controller. At power-up, JTRST must be set low and then high. This action sets the device into the boundary-scan bypass mode allowing normal device operation. If boundary scan is not used, this signal should be held low. Signal Name: JTMS Signal Description: JTAG IEEE 1149.1 Test Mode Select Signal Type: Input (with internal 10k pullup) This signal is sampled on the rising edge of JTCLK and is used to place the test port into the various defined IEEE 1149.1 states. If not used, this signal should be left open-circuited.
24 of 107
DS3160
2.8 Supply, Factory Test, and Reset Signal Descriptions
Signal Name: RST Signal Description: Global Hardware Reset Signal Type: Input (with internal 10k pullup) This active-low asynchronous signal causes the device to be reset. When this signal is forced low, it causes all of the internal registers to be forced to their default states. The device is held in a reset state as long as this signal is low. This signal should be activated after the clocks MCLK and FTCLK are valid, and must be returned high before the device can be configured for operation. Signal Name: HIZ Signal Description: Tri-State All Output Pins Enable Signal Type: Input (with internal 10k pullup) This input should be left open-circuited by the user. Signal Name: TEST , TENA1, TENA2 Signal Description: Factory Test Enable Signal Type: Input (with internal 10k pullup) These inputs should be left open-circuited by the user. Signal Names: LCLKI, LPOSI, LNEGI, DCLKI, DPOSI, DNEGI Signal Description: Factory Test Signal Signal Type: Input (with internal 10k pullup) These inputs should be left open-circuited by the user. Signal Names: LCLKO, LPOSO, LNEGO, DCLKO, DPOSO, DNEGO Signal Description: Factory Test Signal Signal Type: Output These outputs should be left open-circuited by the user. Signal Names: TESTIO1, TESTIO2 Signal Description: Factory Test Signal Signal Type: Input/Output (tri-state capable) These signals should be left open-circuited by the user. Signal Name: DVDD Signal Description: Digital Positive Supply Signal Type: N/A 3.3V (5%). All DVDD signals should be connected together. Signal Name: DVSS Signal Description: Digital Ground Reference Signal Type: N/A All DVSS signals should be connected together.
25 of 107
DS3160 Signal Name: AVDD Signal Description: Analog Positive Supply Signal Type: N/A 3.3V (5%). All AVDD signals should be connected together. Signal Name: AVSS Signal Description: Analog Ground Reference Signal Type: N/A All AVSS signals should be connected together.
26 of 107
DS3160
3. MEMORY MAP AND REGISTER NOMENCLATURE 3.1 Memory Map
ADDRESS
00 02 04 06 08 0A 0C 0E 10 12 14 16 18 1A 1C 1E 20 22 24 26 28 2A 2C 2E 30 32 34 36 38 3A 3C 3E 40 42 44 46 48-4E
Note:
ACRONYM
MRID MC1 MC2 MSR IMSR CR1 CR2 TXTS9798 RXTS9798 SR1 ISR1 INFO BPVCR EXZCR FECR CRCCR BERTMC BERTC0 BERTC1 BERTRP0 BERTRP1 BERTBC0 BERTBC1 BERTEC0 BERTEC1 HCR RHDLC THDLC HSR IHSR -- -- TEST1 TEST2 TEST3 TEST4 --
R/W
R/W R/W R/W R R/W R/W R/W R/W R R R/W R R R R R R/W R/W R/W R/W R/W R R R R R/W R R/W R R/W -- -- R/W R/W R/W R/W --
REGISTER NAME
Master Reset and ID Register Master Configuration Register 1 Master Configuration Register 2 Master Status Register Interrupt Mask Register for MSR Control Register 1 Control Register 2 TX TS97 and TS98 Signaling Insertion RX TS97 and TS98 Signaling Monitor Status Register Interrupt Mask for SR Information Register Bipolar Violation (BPV) Count Register Excessive Zero (EXZ) Count Register Frame Error Count Register CRC Error Count Register BERT Mux Control Register BERT Control Register 0 BERT Control Register 1 BERT Repetitive Pattern 0 BERT Repetitive Pattern 1 BERT 32-Bit Bit Counter BERT 32-Bit Bit Counter BERT 24-Bit Error Counter (lower) and Status Information BERT 24-Bit Error Counter HDLC Control Register Receive HDLC FIFO Transmit HDLC FIFO HDLC Status Register Interrupt Mask for HDLC Status Register Reserved Reserved Test Register 1 Test Register 2 Test Register 3 Test Register 4 Reserved
DATA SHEET SECTION
4.1 4.2 4.2 4.3 4.3 5.2 5.2 5.2 5.2 5.3 5.3 5.3 5.4 5.4 5.4 5.4 6.2 6.2 6.2 6.2 6.2 6.2 6.2 6.2 6.2 7.2 7.2 7.2 7.2 7.2 -- -- 10 10 10 10 --
Address banks 5x, 6x, 7x, 8x, 9x, Ax, Bx, Cx, Dx, Ex, and Fx are not assigned.
27 of 107
DS3160
3.2 Register Description
The DS3160 register set consists of configuration registers and status registers. Configuration registers are read-write except where noted as read-only; status registers are read-only. In this data sheet, registers are described using the following descriptors:
Table 3.2A. REGISTER DESCRIPTION LABEL DEFINITIONS
TEXT Register Name Register Description Register Address Bit # Name Default Register label Full register name Physical address Bit number in register, range 0 through 15; bit 15 is the MSB Bit label Value of the bit immediately after a reset has been issued to the DS3160 FUNCTION
NOTES:
1) The DS3160 ignores data written to bit locations with the name of "N/A." 2) Reading bit locations with the name of "N/A" returns the value of zero. 3) Writing into read-only bit locations does not affect device operation.
28 of 107
DS3160
4. MASTER DEVICE CONFIGURATION AND STATUS/INTERRUPT 4.1 Master Reset and ID Register Descriptions
The master reset and ID (MRID) register can be used to globally reset the device. When the RST bit is set to 1, all of the internal registers are placed into their default state. A reset can also be invoked by the RST hardware signal. The upper byte of the MRID register is read-only and can be read by the host to determine the chip revision. Contact the factory for specifics on the meaning of the value read from the ID0 to ID7 bits. Register Name: Register Description: Register Address: Bit # Name Default Bit # Name Default 7 N/A 0 15 ID7 * 6 N/A 0 14 ID6 * MRID Master Reset and ID Register 00h 5 N/A 0 13 ID5 * 4 N/A 0 12 ID4 * 3 N/A 0 11 ID3 * 2 N/A 0 10 ID2 * 1 N/A 0 9 ID1 * 0 RST 0 8 ID0 *
Note: Bits that are underlined are read-only; all other bits are read-write. Bit 0/Master Software Reset (RST). When this bit is set to a 1 by the host, it forces all of the internal registers to their default states. This bit must be set high for a minimum of 100ns. This software bit is logically OR'ed with the hardware signal RST . 0 = normal operation 1 = force all internal registers to their default values Bits 8 to 15/Chip Revision ID Bit 0 to 7 (ID0 to ID7). Read-only. Contact the factory for details on the meaning of the ID bits. MRID bits 15 (MSB) to 8 (LSB) are a binary coded hexidecimal number that represents the die revision according to the product top brand. Example: 10100010 = A2.
* Contact factory.
29 of 107
DS3160
4.2 Master Configuration Registers Description
Register Name: Register Description: Register Address: Bit # Name Default Bit # Name Default 7 LLB 0 15 FRDAIS 1 6 DLB 0 14 N/A 0 MC1 Master Configuration Register 1 02h 5 DENMS 0 13 ALB 0 4 TAIS 0 12 JASEL 0 3 LOTCMC 0 11 JAEN 0 2 MECU 0 1 AECU 0 9 TMONEN 0 0 ZCSD 0 8 TDRVEN 0
10 RMONEN 0
Note: Bits that are underlined are read-only; all other bits are read-write. Bit 0/Zero Code Suppression Disable (ZCSD) 0 = enable the B8ZS 1 = disable the B8ZS Bit 1/Automatic One-Second Error Counters Update Defeat (AECU). When this bit is set low, the device automatically updates the performance error counters on an internally created 1-second boundary. The host is notified of the update by the setting of the OST status bit in the master status register. In this mode, the host has a full 1-second period to retrieve the error information before it is overwritten with the next update. When this bit is set high, the device defeats the automatic 1-second update and enables a manual update mode. In the manual update mode, the device relies on either the framer manual errorcounter update (FRMECU) hardware-input signal or the MECU control bit to update the error counters. The FRMECU hardware input signal and MECU control bit are logically OR'ed and hence a 0-to-1 transition on either initiates an error-counter update to occur. After either the FRMECU signal or MECU bit has toggled, the host must wait at least 100ns before reading the error counters to allow the device time to complete the update. 0 = enable the automatic update mode and disable the manual update mode 1 = disable the automatic update mode and enable the manual update mode Bit 2/Manual Error-Counter Update (MECU). A 0-to-1 transition on this bit causes the device to update the performance error counters. This bit is ignored if the AECU control bit is set low. This bit must be cleared and set again for a subsequent update. This bit is logically OR'ed with the external FRMECU hardware input signal. After this bit has toggled, the host must wait at least 100ns before reading the error counters to allow the device time to complete the update. Bit 3/Loss-of-Transmit Clock Mux Control (LOTCMC). The DS3160 can detect if the FTCLK fails to transition. If this bit is set low, the device takes no action (other than setting the LOTC status bit) when the FTCLK fails to transition. When this bit is set high, the device automatically switches to the internal receive clock (RCLK) when the FTCLK fails and transmit AIS. 0 = do not switch to the RCLK signal if FTCLK fails to transition 1 = automatically switch to the RCLK signal if the FTCLK fails to transition and send AIS
30 of 107
DS3160 Bit 4/Transmit Alarm Indication Signal (TAIS). When this bit is set high, the transmitter generates an unframed all 1's. When this bit it set low, normal data is transmitted. 0 = do not transmit AIS 1 = transmit AIS Bit 5/Data Enable Mode Select (DENMS). When this bit is set low, the FRDEN and FTDEN outputs are asserted during enabled timeslots and deasserted during the disabled timeslots and F-bits of the frame. When this bit is high, FRDEN and FTDEN are gapped clocks that pulse only during the enabled timeslots of the frame. 0 = FRDEN and FTDEN are data enables 1 = FRDEN and FTDEN are gapped clocks Bit 6/Diagnostic Loopback Enable (DLB). See Figures 1A and 1B for a visual description of this loopback. 0 = disable loopback 1 = enable loopback Bit 7/Line Loopback Enable (LLB). See Figures 1A and 1B for a visual description of this loopback. 0 = disable loopback 1 = enable loopback Bit 8/Transmit Driver Output Enable (TDRVEN). When this bit is set low, the Tx+ and Tx- analog outputs are tri-stated. When this bit is high, the Tx+ and Tx- analog outputs are enabled. 0 = Tx+ and Tx- outputs tri-stated 1 = Tx+ and Tx- outputs enabled Bit 9/Transmit Monitor Output Enable (TMONEN). When this bit is set low, the TxMON+ and TxMON- analog outputs are tri-stated. When this bit is high, the TxMON+ and TxMON- analog outputs are enabled. 0 = TxMON+ and TxMON- outputs tri-stated 1 = TxMON+ and TxMON- outputs enabled Bit 10/Receive Monitor Output Enable (RMONEN). When this bit is set low, the RxMON+ and RxMON- analog outputs are tri-stated. When this bit is high, the RxMON+ and RxMON- analog outputs are enabled. 0 = RxMON+ and RxMON- outputs tri-stated 1 = RxMON+ and RxMON- outputs enabled Bit 11/Jitter Attenuator Enable (JAEN). When this bit is set low, the jitter attenuator is disabled. When this bit is high, the jitter attenuator is enabled. 0 = jitter attenuator disabled 1 = jitter attenuator enabled Bit 12/Jitter Attenuator Path Select (JASEL). When this bit is set low, the jitter attenuator is enabled in the receive path. When this bit is high, the jitter attenuator is enabled in the transmit path. 0 = jitter attenuator in receive path 1 = jitter attenuator in transmit path
31 of 107
DS3160 Bit 13/Analog Loopback Enable (ALB). The analog loopback loops the transmit data (Tx+ and Txoutputs) directly back to the receive side (Rx+ and Rx- inputs). When this loopback is enabled, the data output from the formatter continues to pass through the device, but the incoming receive data is replaced with the data being output from the device. See the block diagrams in Section 1 for a visual description of this loopback. 0 = disable loopback 1 = enable loopback Bit 15/FRD AIS ENABLE (FRDAIS). When this bit is set high, receive data output at the FRD pin is forced to all 1's. When this bit is low, FRD operates normally. 0 = FRD operates normally 1 = data output at the FRD pin is forced to all 1's
32 of 107
DS3160 Register Name: Register Description: Register Address: Bit # Name Default Bit # Name Default 7 FRCLKI 0 15
ALTFTDEN
MC2 Master Configuration Register 2 04h 6 FRDI 0 14
FRSOFM
5 FRDENI 0 13
FTSOFM
4 FTMEII 0 12
FTSOFC
3 FTSOFI 0 11
FRMECUI
2 FTCLKI 0 10
FRLOFI
1 FTDI 0 9
FRLOSI
0 FTDENI 0 8
FRSOFI
0
0
0
0
0
0
0
0
Note: Bits that are underlined are read-only; all other bits are read-write. Bit 0/FTDEN Invert Enable (FTDENI) 0 = do not invert the FTDEN signal (normal mode) 1 = invert the FTDEN signal (inverted mode) Bit 1/FTD Invert Enable (FTDI) 0 = do not invert the FTD signal (normal mode) 1 = invert the FTD signal (inverted mode) Bit 2/FTCLK Invert Enable (FTCLKI) 0 = do not invert the FTCLK signal (normal mode) 1 = invert the FTCLK signal (inverted mode) Bit 3/FTSOF Invert Enable (FTSOFI) 0 = do not invert the FTSOF signal (normal mode) 1 = invert the FTSOF signal (inverted mode) Bit 4/FTMEI Invert Enable (FTMEII) 0 = do not invert the FTMEI signal (normal mode) 1 = invert the FTMEI signal (inverted mode) Bit 5/FRDEN Invert Enable (FRDENI) 0 = do not invert the FRDEN signal (normal mode) 1 = invert the FRDEN signal (inverted mode) Bit 6/FRD Invert Enable (FRDI) 0 = do not invert the FRD signal (normal mode) 1 = invert the FRD signal (inverted mode) Bit 7/FRCLK Invert Enable (FRCLKI) 0 = do not invert the FRCLK signal (normal mode) 1 = invert the FRCLK signal (inverted mode) Bit 8/FRSOF Invert Enable (FRSOFI)
33 of 107
DS3160 0 = do not invert the FRSOF signal (normal mode) 1 = invert the FRSOF signal (inverted mode) Bit 9 / FRLOS Invert Enable (FRLOSI) 0 = do not invert the FRLOS signal (normal mode) 1 = invert the FRLOS signal (inverted mode) Bit 10/FRLOF Invert Enable (FRLOFI) 0 = do not invert the FRLOF signal (normal mode) 1 = invert the FRLOF signal (inverted mode) Bit 11/FRMECU Invert Enable (FRMECUI) 0 = do not invert the FRMECU signal (normal mode) 1 = invert the FRMECU signal (inverted mode) Bit 12/Transmit Frame Sync I/O Control (FTSOFC). When this bit is set low, the FTSOF signal is an input and the DS3160 uses it to determine the frame or multiframe boundaries. When this bit is high, the FTSOF signal is an output and pulses for one FTCLK cycle at the beginning of each frame or multiframe. 0 = FTSOF is an input 1 = FTSOF is an output Bit 13/Transmit Multiframe Enable (FTSOFM). When FTSOF is configured as an output, this bit determines whether the FTSOF signal indicates frame or multiframe boundaries 0 = FTSOF output indicates frame boundaries 1 = FTSOF output indicates multiframe boundaries Bit 14/Receive Multiframe Indication Enable (FRSOFM). This bit is used to control whether the FRSOF output indicates frame or multiframe boundaries 0 = FRSOF indicates frame boundaries 1 = FRSOF indicates multiframe boundaries Bit 15/Alternate Transmit Data Enable (ALTFTDEN). When set low, the FTDEN circuitry uses the FTSOF signal to determine the start of the FTDEN signal (bit 1 of the FTDEN frame). When set high, FTDEN is free-running and ignores FTSOF. 0 = use FTSOF to determine FTDEN start 1 = FTDEN free-running, ignores FTSOF
34 of 107
DS3160
4.3 Master Status and Interrupt Register Descriptions Status Registers
The status registers in the DS3160 allow the host to monitor the real-time condition of the device. Most of the status bits in the device can cause a hardware interrupt to occur. Also, most of the status bits within the device are latched to ensure that the host can detect changes in state and the true status of the device. There are three types of status bits in the DS3160. The first type is called an event status bit, which is derived from a momentary condition or state that occurs within the device. The event status bits are always cleared when read and can generate an interrupt when they are asserted. An example of an event status bit is the one-second-timer boundary occurrence (OST). The second type of status bit is called an alarm status bit, which is derived from conditions that can occur for longer than an instance. The alarm status bits are cleared when read unless the alarm is still present. The alarm status bits generate interrupts on a change in state in the alarm (i.e., when it is asserted or deasserted). An example of an alarm status bit is the loss of frame (LOF). The third type of status bit is called a real-time status bit. The real-time status bit remains active as long as the condition exists and generates an interrupt as long as the condition exists. An example of a real-time status bit is the loss-of-transmit clock (LOTC).
35 of 107
DS3160
Figure 4.3A. EVENT STATUS BIT
INTERNAL SIGNAL
STATUS BIT
INTERRUPT
READ
Figure 4.3B. ALARM STATUS BIT
INTERNAL SIGNAL
STATUS BIT
INTERRUPT
READ
Figure 4.3C. REAL-TIME STATUS BIT
INTERNAL SIGNAL
STATUS BIT
INTERRUPT
READ
36 of 107
DS3160
Master Status Register (MSR)
The master status register (MSR) is a special status register that can be used to help the host quickly locate changes in device status. There is a status bit in the MSR for each of the major blocks within the DS3160. When an alarm or event occurs in one of these blocks, the device can be configured to set a bit in the MSR. Status bits in the MSR can also cause a hardware interrupt to occur. In either polled or interrupt-driven software routines, the host can first read the MSR to locate which status registers need to be serviced. Register Name: Register Description: Register Address: Bit # Name Default Bit # Name Default 7 N/A 0 15 N/A 0 6 N/A 0 14 N/A 0 MSR Master Status Register 06h 5 N/A 0 13 N/A 0 4 SR1 0 12 N/A 0 3 HDLC 0 11 TXDRVR 0 2 BERT 0 10 LIULOS 1 1 COVF 0 9 N/A 0 0 OST 0 8 LOTC 1
Note: Bits that are underlined are read-only; all other bits are read-write. Bit 0/One-Second-Timer Boundary Occurrence (OST). This latched read-only event status bit is set to a 1 on each 1-second boundary as timed by the DS3160. The device chooses an arbitrary 1-second boundary that is timed from the RCLK signal. This bit is cleared when read and is not be set again until another 1-second boundary has occurred. The setting of this status bit can cause a hardware interrupt to occur if the OST bit in the interrupt mask for MSR (IMSR) register is set to a 1. The interrupt is allowed to clear when this bit is read. Bit 1/Counter Overflow Event (COVF). This latched read-only event status bit is set to a 1 if any of the error counters saturate (the error counters saturate when full). This bit is cleared when read even if one or more of the error counters is still saturated. The setting of this status bit can cause a hardware interrupt to occur if the COVF bit in the interrupt mask for MSR (IMSR) register is set to a 1. The interrupt is allowed to clear when this bit is read. Bit 2/Change in BERT Status (BERT). This read-only event status bit is set to a 1 if there is a major change of status in the BERT receiver. A major change of status is defined as either a change in the receive synchronization (i.e., the BERT has gone into or out of receive synchronization), a bit error has been detected, or an overflow has occurred in either the bit counter or the error counter. The host must read the status bits of the BERT in the BERT status register (BERTEC0) to determine the change of state. This bit is cleared when read and is not set again until the BERT has experienced another change of state. The setting of this status bit can cause a hardware interrupt to occur if the BERT bit in the interrupt mask for MSR (IMSR) register is set to a 1 (Figure 4.3D). Bit 3/Change in HDLC Status (HDLC). This read-only event status bit is set to a 1 if there is a change of status in the HDLC controller. The host must read the status bits of the HDLC controller in the HDLC status register (HSR) to determine the change of state. This bit is cleared when read and is not set again until the HDLC controller has experienced another change of state. The setting of this status bit can cause
37 of 107
DS3160 a hardware interrupt to occur if the HDLC bit in the interrupt mask (IMSR) register is set to a 1 (Figure 4.3E). Bit 4/Change in Framer Status (SR1). This read-only event-status bit is set to a 1 if there is a change of status in the framer or formatter. The host must read the contents of SR1 to determine the change of state. This bit is cleared when read and is not set again until the framer or formatter has experienced another change of state. The setting of this status bit can cause a hardware interrupt to occur if the SR1 bit in the interrupt mask (IMSR) register is set to a 1 (Figure 4.3F). Bit 8/Loss-of-Transmit Clock Detected (LOTC). This latched read-only alarm status bit is set to a 1 when the device detects that the FTCLK clock has not toggled for 200ns (100ns). This bit is cleared when a clock is detected at the FTCLK input. The setting of this status bit can cause a hardware interrupt to occur if the LOTC bit in the interrupt mask for MSR (IMSR) register is set to a 1. The interrupt is allowed to clear when the device detects a clock at FTCLK. On reset, the LOTC status bit is set and then immediately cleared if the clock is present. Bit 10/Analog Loss-of-Signal Detected (LIULOS). This latched read-only alarm status bit is set to a 1 when the device detects that the incoming signal has dropped below -20dB of the nominal signal level. When set, the recovered data is squelched and all 0's are output to the framer. The analog loss-of-signal detector is not clear until the signal level is above -16dB of the nominal signal level. Setting this status bit can cause a hardware interrupt to occur if the LIULOS bit in the interrupt mask for MSR (IMSR) register is set to a 1. Bit 11/Transmit Driver Monitor (TXDRVR). This latched read-only alarm status bit is set to a 1 when the analog-transmit outputs (Tx+ and Tx-) fail. The setting of this status bit can cause a hardware interrupt to occur if the TXDRVR bit in the interrupt mask for MSR (IMSR) register is set to a 1.
38 of 107
DS3160
Figure 4.3D. BERT STATUS BIT FLOW
BERT STATUS REGISTER MASTER STATUS REGISTER
INTERNAL RLOS SIGNAL FROM BERT
ALARM LATCH
RLOS (BERTEC0 BIT 4)
EVENT LATCH
CHANGE IN STATE DETECT
MASK
EVENT LATCH
IESYNC (BERTC0 BIT 15) INTERNAL BIT ERROR DETECTED SIGNAL FROM BERT BED (BERTEC0 BIT 3) MASK IEBED (BERTC0 BIT 14) INTERNAL COUNTER OVERFLOW SIGNAL FROM BERT BECO OR BBCO (BERTEC0 BITS 1 AND 2) MASK IEOF (BERTC0 BIT 13)
EVENT LATCH EVENT LATCH
EVENT LATCH
OR
BERT STATUS BIT (MSR BIT 2) MASK
INT
HARDWARE SIGNAL
EVENT LATCH
BERT (IMSR BIT 2)
EVENT LATCH CLEAR ON MSR READ
39 of 107
DS3160
Figure 4.3E. HDLC STATUS BIT FLOW
HDLC STATUS REGISTER
MASTER STATUS REGISTER
TRANSMIT PACKET END SIGNAL FROM HDLC
EVENT LATCH
TEND (HSR BIT 0) MASK
EVENT LATCH
TEND (IHSR BIT 0) INTERNAL TRANSMIT LOW WATERMARK SIGNAL FROM HDLC
TLWM (HSR BIT 2) MASK TLWM (IHSR BIT 2)
EVENT LATCH
INTERNAL RECEIVE HIGH WATERMARK SIGNAL FROM HDLC
RHWM (HSR BIT 4) MASK RHWM (IHSR BIT 4)
EVENT LATCH
INTERNAL RECEIVE PACKET START SIGNAL FROM HDLC
EVENT LATCH
RPS (HSR BIT 5) MASK RPS (IHSR BIT 5)
EVENT LATCH
INTERNAL RECEIVE PACKET END SIGNAL FROM HDLC
EVENT LATCH
RPE (HSR BIT 6) MASK RPE (IHSR BIT 6)
OR
HDLC STATUS BIT (MSR BIT 3) MASK
EVENT LATCH
INT
HARDWARE SIGNAL
INTERNAL TRANSMIT FIFO UNDERRUN SIGNAL FROM HDLC INTERNAL RECEIVE FIFO OVERRUN SIGNAL FROM HDLC INTERNAL RECEIVE ABORT DETECT SIGNAL FROM HDLC
EVENT LATCH
TUDR (HSR BIT 7) MASK
EVENT LATCH
HDLC (IMSR BIT 3)
TUDR (IHSR BIT 3) ROVR (HSR BIT 7) MASK ROVR (IHSR BIT 13) RABT (HSR BIT 15) MASK RABT (IHSR BIT 15)
EVENT LATCH
EVENT LATCH
EVENT LATCH
EVENT LATCH
EVENT LATCH CLEAR ON MSR READ
40 of 107
DS3160
Figure 4.3F. SR1 STATUS BIT FLOW
SR1 STATUS REGISTER MASTER STATUS REGISTER
RECEIVE LOS SIGNAL FROM FRAMER
ALARM LATCH
LOS (SR1 BIT 0)
EVENT LATCH
CHANGE IN STATE DETECT
MASK
EVENT LATCH
LOS (ISR1 BIT 0) RECEIVE LOF SIGNAL FROM FRAMER LOF (SR1 BIT 1)
EVENT LATCH
ALARM LATCH
CHANGE IN STATE DETECT
MASK
LOF (ISR1 BIT 1) RECEIVE CRC ERROR SIGNAL FROM FRAMER CRCER (SR1 BIT 2)
EVENT LATCH
EVENT LATCH
MASK CRCER (ISR1 BIT 2) RECEIVE AIS SIGNAL FROM FRAMER
ALARM LATCH
EVENT LATCH
AIS (SR1 BIT 3)
EVENT LATCH
CHANGE IN STATE DETECT
MASK
AIS (ISR1 BIT 3) RECEIVE RAI SIGNAL FROM FRAMER RAI (SR1 BIT 4)
EVENT LATCH
EVENT LATCH
ALARM LATCH
CHANGE IN STATE DETECT
MASK
RAI (ISR1 BIT 4) RECEIVE START OF FRAME SIGNAL FROM FRAMER
EVENT LATCH
EVENT LATCH
RSOF (SR1 BIT 5)
OR
SR1 STATUS BIT (MSR BIT 5) MASK
INT
RSOF (ISR1 BIT 5) TRANSMIT START OF FRAME SIGNAL FROM FRAMER RECEIVE CHANGE OF FRAME ALIGNMENT TSOF (SR1 BIT 6)
MASK
EVENT LATCH
HARDWARE SIGNAL
EVENT LATCH
SR1 (IMSR BIT 5)
MASK TSOF (ISR1 BIT 6) RCOFA (SR1 BIT 7)
EVENT LATCH
EVENT LATCH
MASK RCOFA (ISR1 BIT 7) REMOTE END ALARM DETECTED READ (SR1 BIT 8)
EVENT LATCH
EVENT LATCH
MASK READ (ISR1 BIT 8) FALSE FRAME ALIGNMENT DETECTED FFA (SR1 BIT 9)
EVENT LATCH
EVENT LATCH
MASK FFA (ISR1 BIT 9)
EVENT LATCH
EVENT LATCH CLEAR ON MSR READ
41 of 107
DS3160 Register Name: Register Description: Register Address: Bit # Name Default Bit # Name Default 7 N/A 0 15 N/A 0 6 N/A 0 14 N/A 0 IMSR Interrupt Mask for Master Status Register 08h 5 N/A 0 13 N/A 0 4 SR1 0 12 N/A 0 3 HDLC 0 11 TXDRVR 0 2 BERT 0 10 LIULOS 0 1 COVF 0 9 N/A 0 0 OST 0 8 LOTC 0
Bit 0/One-Second-Timer Boundary Occurrence (OST) 0 = interrupt masked 1 = interrupt unmasked Bit 1/Counter Overflow Event (COVF) 0 = interrupt masked 1 = interrupt unmasked Bit 2/Change in BERT Status (BERT) 0 = interrupt masked 1 = interrupt unmasked Bit 3/Change in HDLC Status (RHDLC) 0 = interrupt masked 1 = interrupt unmasked Bit 4/Change in Framer/Formatter Status (SR1) 0 = interrupt masked 1 = interrupt unmasked Bit 8/Loss-of-Transmit Clock (LOTC) 0 = interrupt masked 1 = interrupt unmasked Bit 10/Analog Loss-of-Signal Detected (LIULOS) 0 = interrupt masked 1 = interrupt unmasked Bit 11/Transmit Driver Monitor (TXDRVR) 0 = interrupt masked 1 = interrupt unmasked
42 of 107
DS3160
5. FRAMER 5.1 General Description
On the receive side, the framer locates the frame boundaries of the incoming data stream and monitors the data stream for alarms and errors. Alarms are detected and reported in status register 1 (SR1) and the information register (INFO), which are described in Section 5.3. Errors are accumulated in a set of error counters (Section 5.4). The host can force the framer to resynchronize by the REFRM control bit in CR1 (Section 5.2). On the transmit side, the device formats the outgoing data stream with the proper framing pattern and overhead and can generate alarms. It can also inject errors for diagnostic testing purposes (see the EIC register). The transmit side of the framer is called the formatter.
Line Loopback
The line loopback loops the incoming data (i.e., RCLK, RPOS, and RNEG inputs) directly back to the transmit side (i.e., TCLK, TPOS, and TNEG outputs; Figure 1B). When this loopback is enabled, the incoming receive data continues to pass through the device, but the data output from the formatter is replaced with the data being input to the device. (See the block diagrams in Section 1 for a visual description of this loopback.)
Diagnostic Loopback
The diagnostic loopback loops the outgoing data from the formatter back to the receive side framer. When this loopback is enabled, the incoming receive data at RCLK, RPOS, and RNEG is ignored. (See the block diagrams in Section 1 for a visual description of this loopback.) Note that the device can still generate AIS at the TCLK, TPOS, and TNEG outputs when this loopback is invoked. This is important to keep the data that is being looped back from disturbing downstream equipment.
Payload Loopback
The payload loopback loops the framed data from the receive side framer back to the transmit side formatter. When this loopback is enabled, the incoming receive data continues to pass through the device but the data normally being input to the formatter is ignored. The overhead bits are regenerated by the formatter and inserted into the transmit stream. During payload loopback, the DS3160 internally connects FRCLK to FTCLK and FRSOF to FTSOF (FTSOF is set to the input mode). Clock and start-of-frame configurations are returned to user values when the loopback is disabled. (See the block diagrams in Section 1 for a visual description of this loopback.)
43 of 107
DS3160
5.2 Framer Control Register Description
Register Name: Register Description: Register Address: Bit # Name Default Bit # Name Default CR1 Control Register 1 0Ah 5 TRAI 0 13 N/A 0 4 TSLOT1 0 12 N/A 0 3 TSLOT0 0 11 N/A 0 2 TPT 0 1 SIGPASS 0 9 ECC 0 0 PLB 0 8 FECC 0
7 6 TRAILOF TRAILOS 0 0 15 AREFRM 0 14 REFRM 0
10 CRC5FM 0
Note: Bits that are underlined are read-only; all other bits are read-write. Bit 0/Payload Loopback Enable (PLB). See Figures 1A and 1B for a visual description of this loopback. 0 = disable loopback 1 = enable loopback Bit 1/TS97 and TS98 Signaling Pass Through Enable (SIGPASS). Setting the SIGPASS bit allows the signaling bits contained in timeslots 97 and 98 on the FTD stream to pass transparently through the transmit formatter. When SIGPASS is a logic 0, timeslots 97 and 98 are sourced from the transmit TS97 and TS98 signaling insertion register (TXTS9798). Bit 2/Transmit Pass Through Enable (TPT). 0 = enable the formatter to insert framing and overhead bits 1 = formatter does not insert any framing or overhead bits Bits 3 and 4/Timeslot Select Bits 0 and 1 (TSLOT0 and TSLOT1). These bits are used to determine what timeslots are considered active by the signals FRDEN and FTDEN. TSLOT1 0 0 1 1 TSLOT0 0 1 0 1 TIMESLOTS SELECTED 6Mbps (TS1-TS96) 4.5Mbps (TS1-TS72) 3Mbps (TS1-TS48) 1.5Mbps (TS1-TS24)
44 of 107
DS3160
Figure 5.2A. FRDEN AND FTDEN 6Mbps TIMING
Bit # Frame 1 Frame 2 Frame 3 Frame 4 FRDEN/ FTDEN 1-8 TS1 TS1 TS1 TS1 9-16 17-24 TS2 TS2 TS2 TS2 TS3 TS3 TS3 TS3 753- 761- 769- 777- 760 768 776 784 TS95 TS96 TS95 TS96 TS95 TS96 TS95 TS96 TS97 TS98 TS97 TS98 TS97 TS98 TS97 TS98 785 1 1 x1 e1 786 1 0 x2 e2 787 0 1 x3 e3 788 0 0 a e4 789 m 0 m e5
Figure 5.2B. FRDEN AND FTDEN 4.5Mbps TIMING
Bit # Frame 1 Frame 2 Frame 3 Frame 4 FRDEN/ FTDEN 1-8 TS1 TS1 TS1 TS1 569- 577- 576 584 TS72 TS73 TS72 TS73 TS72 TS73 TS72 TS73 761- 769- 777- 768 776 784 TS96 TS96 TS96 TS96 TS97 TS98 TS97 TS98 TS97 TS98 TS97 TS98 785 1 1 x1 e1 786 1 0 x2 e2 787 0 1 x3 e3 788 0 0 a e4 789 m 0 m e5
Figure 5.2C. FRDEN AND FTDEN 3Mbps TIMING
Bit # Frame 1 Frame 2 Frame 3 Frame 4 FRDEN/ FTDEN 1-8 TS1 TS1 TS1 TS1 377- 385- 384 392 TS48 TS49 TS48 TS49 TS48 TS49 TS48 TS49 761- 769- 777-- 785 768 776 784 TS96 TS96 TS96 TS96 TS97 TS98 TS97 TS98 TS97 TS98 TS97 TS98 1 1 x1 e1 786 1 0 x2 e2 787 0 1 x3 e3 788 0 0 a e4 789 m 0 m e5
45 of 107
DS3160
Figure 5.2D. FRDEN AND FTDEN 1.5Mbps TIMING
Bit # Frame 1 Frame 2 Frame 3 Frame 4 FRDEN/ FTDEN 1-8 TS1 TS1 TS1 TS1 185- 193- 192 200 TS24 TS25 TS24 TS25 TS24 TS25 TS24 TS25 761- 769- 777- 768 776 784 TS96 TS96 TS96 TS96 TS97 TS98 TS97 TS98 TS97 TS98 TS97 TS98 785 1 1 x1 e1 786 1 0 x2 e2 787 0 1 x3 e3 788 0 0 a e4 789 m 0 m e5
Bit 5/Transmit Remote Alarm Indication (TRAI). When this bit is set high, the RAI pattern is sent on the M-bit. 0 = do not transmit RAI 1 = transmit RAI Bit 6/Automatic Transmit Remote Alarm Indication on LOS (TRAILOS). When this bit is set high, the RAI pattern is sent on the M-bit automatically when the framer declares a loss-of-signal (LOS) occurrence. Transmission of RAI terminates when LOS is cleared. 0 = disable automatic RAI transmit 1 = enable automatic RAI transmit Bit 7/Automatic Transmit Remote Alarm Indication on LOF (TRAILOF). When this bit is set high, the RAI pattern is sent on the M-bit automatically when the framer declares a loss-of-frame (LOF) occurrence. Transmission of RAI terminates when LOF is cleared. 0 = disable automatic RAI transmit 1 = enable automatic RAI transmit Bits 8/Frame Error-Counting Control Bit (FECC). This bit is used to control what events are counted by the frame error counter. When this bit is set low, the counter accumulates LOF occurrences. When this bit is set high, the counter accumulates F-bit errors. Bit 9/Error-Counting Control (ECC). This bit is used to control whether the device increments the error counters during LOF conditions. It affects the frame error counter only when it is configured to count frame errors, not LOF occurrences. When this bit is set low, the frame error counter and CRC error counter are not allowed to increment during LOF conditions. When this bit is set high, both counters are allowed to increment during LOF conditions. 0 = stop the FECR and CRCCR error counters from incrementing during LOF 1 = allow the FECR and CRCCR error counters to increment during LOF
46 of 107
DS3160 Bit 10/CRC-5 Framing Mode (CRC5FM). When set, this bit enables an alternate framing algorithm that uses the CRC-5 check bits to validate framing in addition to the FAS bits. This reduces the chances of falsely framing to an emulator pattern in the frame. This algorithm declares frame synchronization after two or more of the first four FAS valid frames have correct CRC-5 check bits. If these criteria are not met, reframe is initiated at the FAS level. If CRC5FM is set to 0, the framing algorithm only searches for three consecutive multiframes with correct FAS patterns to declare frame synchronization. 0 = disable CRC qualified framing 1 = enable CRC qualified framing Bit 14/Reframe (REFRM). The reframe bit forces the DS3160's receiver to begin searching for a new frame alignment. If the new frame alignment matches the previous alignment, there is no disruption in data or movement of the data-enable and start-of-frame signals. A 0-to-1 transition triggers the reframing. Bit 15/Auto Reframe (AREFRM). Setting the auto-reframe bit to a 0 allows the DS3160 to begin searching for new frame alignment when an LOF has been declared. 0 = enable automatic reframe 1 = disable automatic reframe
47 of 107
DS3160 Register Name: Register Description: Register Address: Bit # Name Default Bit # Name Default 7 N/A 0 15 IDLEFILL 0 CR2 Control Register 2 0Ch 6 ALTAIS 0 14 LOSTHR1 0 5 MEIMS 0 13 LOSTHR0 0 4 CRCI 0 12 RALMTH 0 3 LOFI 0 11 X3 0 2 FBEI 0 10 X2 0 1 EXZI 0 9 X1 0 0 BPVI 0 8 A 0
Note: Bits that are underlined are read-only; all other bits are read-write. Bit 0/Bipolar Violation Insert (BPVI). A 0-to-1 transition on this bit causes a single BPV to be inserted into the transmit data stream. Once this bit has been toggled from a 0 to a 1, the device waits for the next occurrence of three consecutive 1's to insert the BPV. This bit must be cleared and set again for a subsequent error to be inserted. In the manual-error-insert mode (MEIMS = 1), errors are inserted on each toggle of the FTMEI input signal as long as this bit is set high. When this bit is set low, no errors are inserted. Bit 1/Excessive Zero Insert (EXZI). A 0-to-1 transition on this bit causes a single EXZ event to be inserted into the transmit data stream. An EXZ event is defined as eight or more consecutive 0's. Once this bit has been toggled from a 0 to a 1, the device waits for the next possible B8ZS code word insertion and it suppresses that code word from being inserted and, hence, this creates the EXZ event. This bit must be cleared and set again for a subsequent error to be inserted. In the manual-error-insert mode (MEIMS = 1), errors are inserted on each toggle of the FTMEI input signal as long as this bit is set high. When this bit is set low, no errors are inserted. Bit 2/Frame Bit-Error Insert (FBEI). A 0-to-1 transition on this bit causes the transmit formatter to generate a framing bit error. Once this bit has been toggled from a 0 to a 1, the device waits for the next possible framing bit to insert the error. This bit must be cleared and set again for a subsequent error to be inserted. In the manual-error-insert mode (MEIMS = 1), errors are inserted on each toggle of the FTMEI input signal as long as this bit is set high. When this bit is set low, no errors are inserted. Only FAS bits are corrupted by this function. Bit 3/Loss-of-Frame Error Insert (LOFI). A 0-to-1 transition on this bit causes the transmit formatter to generate seven consecutive multiframes with errors in the FAS pattern. Once this bit has been toggled from a 0 to a 1, the device waits for the next multiframe to begin error insertion. This bit must be cleared and set again for a subsequent error to be inserted. In the manual-error-insert mode (MEIMS = 1), errors are inserted on each toggle of the FTMEI input signal as long as this bit is set high. When this bit is set low, no errors are inserted. Only FAS bits are corrupted by this function.
48 of 107
DS3160 Bit 4/CRC Error Insert (CRCI). A 0-to-1 transition on this bit causes the transmit formatter to generate a CRC-5 error. Once this bit has been toggled from a 0 to a 1, the device waits for the next possible CRC5 word to insert the error. This bit must be cleared and set again for a subsequent error to be inserted. In the manual-error-insert mode (MEIMS = 1), errors are inserted on each toggle of the FTMEI input signal as long as this bit is set high. When this bit is set low, no errors are inserted. Only CRC-5 bits are corrupted by this function. Bit 5/Manual-Error-Insert Mode Select (MEIMS). When this bit is set low, the device inserts errors on each 0-to-1 transition of the BPVI, EXZI, or FBEI control bits. When this bit is set high, the device inserts errors on each 0-to-1 transition of the FTMEI input signal. The appropriate BPVI, EXZI, or FBEI control bit must be set to 1 for this to occur. If all of the BPVI, EXZI, and FBEI control bits are set to 0, no errors are inserted. 0 = use 0-to-1 transition on the BPVI, EXZI, or FBEI control bits to insert errors 1 = use a 0-to-1 transition on the FTMEI input signal to insert errors Bit 6/Alternate AIS Enable (ALTAIS). When set low, the device determines AIS using the default criteria. When set high, the device determines AIS using the alternate criteria. See Table 5.3A, Alarm Criteria, for additional details. ALTAIS 0 1 SET CRITERIA Two or fewer 0's among the four frames received One or fewer 0's among 96 frames (75,744 bits) received CLEAR CRITERIA Three or more 0's among the four frames received Two or more 0's among 96 frames (75,744 bits) received
Bit 8/Remote-End Alarm Bit (A). When set low, the device inserts a 0 in the A-bit position (bit 788 of the third frame in the multiframe). When set high, the device inserts a 1 in the A-bit position. 0 = set the A-bit to 0 1 = set the A-bit to 1 Bits 9, 10, 11/Spare Bits (X1, X2, X3). These control register bits determine what values are loaded into the spare bit locations (bits 785, 786, 787) of the third frame in the multiframe. X1 maps into bit 785; X2 maps into bit 786; X3 maps into bit 787. These bits should be set to a 1 if not used. 0 = set the X-bit to 0 1 = set the X-bit to 1 Bit 12/Remote-End Alarm-Detected Threshold (RALMTH). This bit selects the number of consecutive A-bits required to set and clear the remote-end alarm-detected status bit found in SR1. 0 = alarm set when the A-bit has been a logic 1 for three consecutive frames and reset when the A-bit has been a logic 0 for three consecutive frames 1 = alarm set when the A-bit has been a logic 1 for five consecutive frames and reset when the A-bit has been a logic 0 for five consecutive frames
49 of 107
DS3160 Bits 13 and 14/Loss-of-Signal Threshold Select Bits 0 and 1 (LOSTHR0 and LOSTHR1). These bits are used to determine how many consecutive 0's must be received in order to declare a loss-of-signal (LOS) condition. See Table 5.3A, Alarm Criteria, for additional details. LOSTHR1 0 0 1 1 LOSTHR0 0 1 0 1 CONSECUTIVE 0's REQUIRED 15 31 63 255
Bit 15/Idle Timeslot Fill Select (IDLEFILL). This bit determines whether 1's or 0's are inserted into the unused timeslots in the transmit path when the DS3160 is operated at fractional line rates. When this bit is set low, the unused channels are filled with 1's. When this bit is set high, the unused channels are filled with 0's. ACTIVE TIMESLOTS 6Mbps (TS1-TS96) 4.5Mbps (TS1-TS72) 3Mbps (TS1-TS48) 1.5Mbps (TS1-TS24) TIMESLOTS TO BE FILLED None TS73-TS96 TS49-TS96 TS25-TS96
50 of 107
DS3160 Register Name: Register Description: Register Address: Bit # Name Default Bit # Name Default 7 TS97_1 1 15 TS98_1 1 TXTS9798 Transmit TS97 and TS98 Signaling Insertion 0Eh 6 TS97_2 1 14 TS98_2 1 5 TS97_3 1 13 TS98_3 1 4 TS97_4 1 12 TS98_4 1 3 TS97_5 1 11 TS98_5 1 2 TS97_6 1 10 TS98_6 1 1 TS97_7 1 9 TS98_7 1 0 TS97_8 1 8 TS98_8 1
Note: Bits that are underlined are read-only; all other bits are read-write. Bits 0 to 7/Transmit TS97 Signaling (TS97_1:TS97_8). These bits are used to set the contents of timeslot 97 (TS97) in the transmit data path. TS97_1 is the first bit of TS97 transmitted. Bits 8 to 15/Transmit TS98 Signaling (TS98_1:TS98_8). These bits are used to set the contents of timeslot 98 (TS98) in the transmit data path. TS98_1 is the first bit of TS98 transmitted. Note: No synchronization of the insertion of the TXTS9798 register contents with respect to the frame or timeslot is provided.
51 of 107
DS3160 Register Name: Register Description: Register Address: Bit # Name Default Bit # Name Default 7 TS97_1 N/A 15 TS98_1 N/A RXTS9798 Receive TS97 and TS98 Monitor 10h 6 TS97_2 N/A 14 TS98_2 N/A 5 TS97_3 N/A 13 TS98_3 N/A 4 TS97_4 N/A 12 TS98_4 N/A 3 TS97_5 N/A 11 TS98_5 N/A 2 TS97_6 N/A 10 TS98_6 N/A 1 TS97_7 N/A 9 TS98_7 N/A 0 TS97_8 N/A 8 TS98_8 N/A
Note: Bits that are underlined are read-only; all other bits are read-write. Bits 0 to 7/Receive TS97 Signaling (TS97_1:TS97_8). These bits contain the contents of timeslot 97 (TS97) in the receive data path. TS97_1 is the first bit of TS97 received. Bits 8 to 15/Receive TS98 Signaling (TS98_1:TS98_8). These bits contain the contents of timeslot 98 (TS98) in the receive data path. TS98_1 is the first bit of TS98 received. Note: The RXTS9798 register contents are real-time and are not integrated. Register content updates are not synchronized with byte, frame, or multiframe boundaries.
52 of 107
DS3160
5.3 Framer Status and Interrupt Register Descriptions
Note: See Figure 5.3A for details about the signal flow for the status bits in the SR register. Register Name: Register Description: Register Address: Bit # Name Default Bit # Name Default 7 RCOFA 0 15 N/A 0 SR1 Status Register 12h 6 RSOF 0 14 N/A 0 5 TSOF 0 13 N/A 0 4 RAI 0 12 N/A 0 3 AIS 0 11 N/A 0 2 CRCER 0 10 N/A 0 1 LOF 1 9 FFA 0 0 LOS 1 8 READ 0
Note: Bits that are underlined are read-only; all other bits are read-write. Bit 0/Loss-of-Signal Occurrence (LOS). This latched read-only alarm-status bit is set to a 1 when the framer detects a loss of signal. The signal FRD is forced to all 1's during an LOS condition. This bit is cleared when read unless an LOS condition still exists. A change in state of the LOS can cause a hardware interrupt to occur if the LOS bit in the interrupt mask for the SR1 (ISR1) register is set to a 1 and the SR1 bit in the interrupt mask for the MSR (IMSR) register is set to a 1. The interrupt is allowed to clear when this bit is read. The LOS alarm criteria is described in Table 5.3A. Bit 1/Loss-of-Frame Occurrence (LOF). This latched read-only alarm-status bit is set to a 1 when the framer detects a loss of frame. This bit is cleared when read unless an LOF condition still exists. A change in state of the LOF can cause a hardware interrupt to occur if the LOF bit in the interrupt mask for the SR1 (ISR1) register is set to a 1 and the SR1 bit in the interrupt mask for the MSR (IMSR) register is set to a 1. The interrupt is allowed to clear when this bit is read. The LOF alarm criteria is described in Table 5.3A. Bit 2/Receive CRC Error Detected (CRCER). This latched read-only event-status bit is set to a 1 as a result of detecting a CRC error in a received multiframe. This bit is cleared when read. The setting of this bit can cause a hardware interrupt to occur if the CRCER bit in the interrupt mask for the SR1 (ISR1) register is set to a 1 and the SR1 bit in the interrupt mask for the MSR (IMSR) register is set to a 1. Bit 3/Alarm Indication Signal Detected (AIS). This latched read-only alarm-status bit is set to a 1 when the framer detects an incoming alarm indication signal. This bit is cleared when read unless an AIS signal is still present. A change in state of the AIS detection can cause a hardware interrupt to occur if the AIS bit in the interrupt mask for SR1 (ISR1) register is set to a 1 and the SR1 bit in the interrupt mask for MSR (IMSR) register is set to a 1. The interrupt is allowed to clear when this bit is read. The AIS alarm detection criteria is described in Table 5.3A. Bit 4/Remote Alarm Indication Detected (RAI). This latched read-only alarm-status bit is set to a 1 when the framer detects an incoming remote alarm indication (RAI) signal. This bit is cleared when read unless an RAI signal is still present. A change in state of the RAI detection can cause a hardware interrupt to occur if the RAI bit in the interrupt mask for SR1 (ISR1) register is set to a 1 and the SR1 bit in the
53 of 107
DS3160 interrupt mask for MSR (IMSR) register is set to a 1. The interrupt is allowed to clear when this bit is read. The RAI alarm detection criteria is described in Table 5.3A. Bit 5/Transmit Start of Frame (TSOF). This latched read-only event-status bit is set to a 1 on each transmit frame or multiframe boundary (see FTSOFM). This bit is a software version of the FTSOF hardware signal and it is cleared when read. The setting of this bit can cause a hardware interrupt to occur if the TSOF bit in the interrupt mask for SR1 (ISR1) register is set to a 1 and the SR1 bit in the interrupt mask for MSR (IMSR) register is set to a 1. Bit 6/Receive Start of Frame (RSOF). This latched read-only event-status bit is set to a 1 on each receive frame or multiframe boundary (see FRSOFM). This bit is a software version of the FRSOF hardware signal and it is cleared when read. The setting of this bit can cause a hardware interrupt to occur if the RSOF bit in the interrupt mask for SR1 (ISR1) register is set to a 1 and the SR1 bit in the interrupt mask for MSR (IMSR) register is set to a 1. Bit 7/Receive Change-of-Frame Alignment (RCOFA). This latched read-only event-status bit is set to a 1 when the framer has experienced a change-of-frame alignment (COFA). A COFA occurs when the device achieves synchronization in a different alignment than it had previously. If the device has never acquired synchronization before, then this status bit is meaningless. This bit is cleared when read and is not set again until the framer has lost synchronization and reacquired synchronization in a different alignment. The setting of this bit can cause a hardware interrupt to occur if the RCOFA bit in the interrupt mask for SR1 (ISR1) register is set to a 1 and the SR1 bit in the interrupt mask for MSR (IMSR) register is set to a 1. Bit 8/Remote-End Alarm Detected (READ). This latched read-only alarm-status bit is set to a 1 when the framer detects a remote-end alarm (A-bit set to 1). This bit is cleared when read unless the remote-end alarm signal is present. A change in state of the remote-end alarm can cause a hardware interrupt to occur if the READ bit in the interrupt mask for SR1 (ISR1) register is set to a 1 and the SR1 bit in the interrupt mask for the MSR (IMSR) register is set to a 1. The interrupt is allowed to clear when this bit is read. The READ threshold can be set in CR2. Bit 9/False-Frame Alignment (FFA). This latched read-only event-status bit is set to a 1 when 32 consecutive super frames have bad CRC. This feature can be used to assist in monitoring for false-frame alignment as described in JT-G706. This bit is cleared when read. The setting of this bit can cause a hardware interrupt to occur if the RSOF bit in the interrupt mask for SR1 (ISR1) register is set to a 1 and the SR1 bit in the interrupt mask for the MSR (IMSR) register is set to a 1.
54 of 107
DS3160
Figure 5.3A. SR1 STATUS BIT FLOW
SR1 STATUS REGISTER MASTER STATUS REGISTER
RECEIVE LOS SIGNAL FROM FRAMER
ALARM LATCH
LOS (SR1 Bit 0)
EVENT LATCH MASK
CHANGE IN STATE DETECT
EVENT LATCH
LOS (ISR1 BIT 0) RECEIVE LOF SIGNAL FROM FRAMER LOF (SR1 Bit 1)
EVENT LATCH MASK
ALARM LATCH
CHANGE IN STATE DETECT
LOF (ISR1 BIT 1) RECEIVE CRC ERROR SIGNAL FROM FRAMER
EVENT LATCH
EVENT LATCH
CRCER (SR1 BIT 2)
MASK
CRCER (ISR1 BIT 2) RECEIVE AIS SIGNAL FROM FRAMER
ALARM LATCH
EVENT LATCH
AIS (SR1 BIT 3)
EVENT LATCH MASK
CHANGE IN STATE DETECT
AIS (ISR1 BIT 3) RECEIVE RAI SIGNAL FROM FRAMER RAI (SR1 BIT 4)
EVENT LATCH MASK
EVENT LATCH
ALARM LATCH
CHANGE IN STATE DETECT
EVENT LATCH
RAI (ISR1 BIT 4) RECEIVE START-OFFRAME SIGNAL FROM FRAMER RSOF (SR1 BIT 5)
MASK EVENT LATCH
EVENT LATCH
OR
SR1 STATUS BIT (MSR BIT 5)
MASK
INT
RSOF (ISR1 BIT 5) TRANSMIT START-OFFRAME SIGNAL FROM FRAMER RECEIVE CHANGE-OFFRAME ALIGNMENT TSOF (SR1 BIT 6)
MASK
HARDWARE SIGNAL
EVENT LATCH
SR1 (IMSR BIT 5)
TSOF (ISR1 BIT 6) RCOFA (SR1 BIT 7)
MASK
EVENT LATCH
EVENT LATCH
RCOFA (ISR1 BIT 7) REMOTEEND ALARM DETECTED READ (SR1 BIT 8)
MASK
EVENT LATCH
EVENT LATCH
EVENT LATCH
READ (ISR1 BIT 8) FALSE-FRAME ALIGNMENT DETECTED
EVENT LATCH
FFA (SR1 BIT 9)
MASK
EVENT LATCH
FFA (ISR1 BIT 9)
EVENT LATCH CLEAR ON MSR READ
55 of 107
DS3160 Register Name Register Description: Register Address: Bit # Name Default Bit # Name Default 7 RCOFA 0 15 N/A 0 6 RSOF 0 14 N/A 0 ISR1 Interrupt Mask for Status Register 14h 5 TSOF 0 13 N/A 0 4 RAI 0 12 N/A 0 3 AIS 0 11 N/A 0 2 CRCER 0 10 N/A 0 1 LOF 0 9 FFA 0 0 LOS 0 8 READ 0
Note: Bits that are underlined are read-only; all other bits are read-write. Bit 0/Loss-of-Signal Occurrence (LOS) 0 = interrupt masked 1 = interrupt unmasked Bit 1/Loss-of-Frame Occurrence (LOF) 0 = interrupt masked 1 = interrupt unmasked Bit 2/Receive Multiframe CRC Error Occurrence (CRCER) 0 = interrupt masked 1 = interrupt unmasked Bit 3/Alarm Indication Signal Detected (AIS) 0 = interrupt masked 1 = interrupt unmasked Bit 4/Remote Alarm Indication Detected (RAI) 0 = interrupt masked 1 = interrupt unmasked Bit 5/Transmit Start of Frame (TSOF) 0 = interrupt masked 1 = interrupt unmasked Bit 6/Receive Start of Frame (RSOF) 0 = interrupt masked 1 = interrupt unmasked Bit 7/Receive Change-of-Frame Alignment (RCOFA) 0 = interrupt masked 1 = interrupt unmasked
56 of 107
DS3160 Bit 8/Remote-End Alarm Detected (READ) 0 = interrupt masked 1 = interrupt unmasked Bit 9/False-Frame Alignment (FFA) 0 = interrupt masked 1 = interrupt unmasked
Table 5.3A. ALARM CRITERIA
ALARM/ CONDITION AIS DESCRIPTION Alarm Indication Signal Alternate Alarm Indication Signal CRITERIA SET Two or fewer "0" among the four frames received. CLEAR Three or more "0" among the four frames received.
ALTAIS
One or fewer "0" among 96 frames Two or more "0" among 96 (75,744 bits) received. frames (75,744 bits) received. No excessive 0 (EXZ) events over the selected threshold that starts with the first "1" received. Reception of three or more consecutive multiframes with correct FAS patterns.
LOS
Loss of Signal
User-selectable threshold of 15, 31, 63, or 255 consecutive "0."
LOF
Loss of Frame
RAI
Remote Alarm Indication
Alternately, if CRC5FM is enabled, frame synchronization is declared after two or more of the first four FAS valid frames have correct CRC-5 check bits. When a pattern other than Detection of "1111111100000000" "1111111100000000" is pattern for 16 times or more detected four times or more continuously on the M-bit of the consecutively on the M-bit in received frames. the received frames.
Reception of seven or more consecutive multiframes with erred frame alignment signal (FAS).
57 of 107
DS3160 Register Name: Register Description: Register Address: Bit # Name Default Bit # Name Default 7 N/A 0 15 N/A 0 6 N/A 0 14 N/A 0 INFO Information Register 16h 5 X1 1 13 N/A 0 4 X2 1 12 N/A 0 3 X3 1 11 RAIC 0 2 EXZ 0 10 AISC 0 1 FBE 0 9 LOFC 0 0 ZSCD 0 8 LOSC 0
Note 1: Bits that are underlined are read-only; all other bits are read-write. Note 2: The status bits in the INFO cannot cause a hardware interrupt to occur. Bit 0/Zero Suppression Code Word Detected (ZSCD). This latched read-only event-status bit is set to a 1 when the framer has detected a B8ZS code word. This bit is cleared when read and is not set again until the framer has detected another B8ZS code word. Bit 1/F-Bit or FAS Error Detected (FBE). This latched read-only event-status bit is set to a 1 when the DS3160 detects an error in the F-bits. This bit is cleared when read and is not set again until the device detects another error. Bit 2/Excessive Zeros Detected (EXZ). This latched read-only event-status bit is set to a 1 each time the DS3160 detects a consecutive string of either eight or more 0's. A 0 is defined as no signal (pulses) on the line for one clock period. This bit is cleared when read and is not set again until the device detects another excessive zero event. Bits 3, 4, 5/Spare Bits (X1, X2, X3). These register bits contain the real-time values of the spare bit locations (bits 785, 786, 787) of the third frame in the multiframe. X1 maps into bit 785. X2 maps into bit 786. X3 maps into bit 787. The DS3160 performs no integration on the spare bits. Bit 8/Loss-of-Signal Clear Detected (LOSC). This latched read-only event-status bit is set to a 1 each time the framer exits an LOS state. This bit is cleared when read and is not set again until the device once again exits the LOS state. The LOS alarm criteria is described in Table 5.3A. Bit 9/Loss-of-Frame Clear Detected (LOFC). This latched read-only event status bit is set to a 1 each time the framer exits an LOF state. This bit is cleared when read and is not be set again until the device once again exits the LOF state. The LOF alarm criteria is described in Table 5.3A. Bit 10/Alarm Indication Signal Clear Detected (AISC). This latched read-only event-status bit is set to a 1 each time the framer no longer detects the AIS alarm state. This bit is cleared when read and is not set again until the device once again exits the AIS alarm state. The AIS alarm criteria is described in Table 5.3A. Bit 11/Remote Alarm Indication Clear Detected (RAIC). This latched read-only event-status bit is set to a 1 each time the framer no longer detects the RAI alarm state. This bit is cleared when read and is not set again until the device once again exits the RAI alarm state. The RAI alarm criteria is described in Table 5.3A.
58 of 107
DS3160
5.4 Performance Error Counters
There are four error counters in the DS3160. All of the error counters are 16 bits in length. The host has three options as to how these error counters are updated. The device can be configured to automatically update the counters once per second or manually by either an internal software bit (MECU) or an external signal (FRMECU). See Section 4.2 for details. All the error counters saturate when full and do not roll over. Register Name: Register Description: Register Address: Bit # Name Default Bit # Name Default 7 BPV7 0 15 BPV15 0 BPVCR Bipolar Violation Count Register 18h 6 BPV6 0 14 BPV14 0 5 BPV5 0 13 BPV13 0 4 BPV4 0 12 BPV12 0 3 BPV3 0 11 BPV11 0 2 BPV2 0 10 BPV10 0 1 BPV1 0 9 BPV9 0 0 BPV0 0 8 BPV8 0
Note: Bits that are underlined are read-only; all other bits are read-write. Bits 0 to 15/16-Bit Bipolar Violation Counter (BPV0 to BPV15). These bits report the number of bipolar violations (BPV). A BPV is defined as consecutive pulses (or marks) of the same polarity that are not part of a B8ZS code word. Register Name: Register Description: Register Address: Bit # Name Default Bit # Name Default 7 EXZ7 0 15 EXZ15 0 6 EXZ6 0 14 EXZ14 0 EXZCR Excessive Zero Count Register 1Ah 5 EXZ5 0 13 EXZ13 0 4 EXZ4 0 12 EXZ12 0 3 EXZ3 0 11 EXZ11 0 2 EXZ2 0 10 EXZ10 0 1 EXZ1 0 9 EXZ9 0 0 EXZ0 0 8 EXZ8 0
Note: Bits that are underlined are read-only; all other bits are read-write. Bits 0 to 15/16-Bit Excessive Zero Counter (EXZ0 to EXZ15). These bits report the number of excessive zero occurrences (EXZ). An EXZ occurrence is defined as eight or more consecutive 0's. A 0 is defined as no signal (pulses) on the line for one clock period. As an example, a string of 20 consecutive 0's would only increment this counter once.
59 of 107
DS3160 Register Name: Register Description: Register Address: Bit # Name Default Bit # Name Default 7 FE7 0 15 FE15 0 6 FE6 0 14 FE14 0 FECR Frame Error-Count Register 1Ch 5 FE5 0 13 FE13 0 4 FE4 0 12 FE12 0 3 FE3 0 11 FE11 0 2 FE2 0 10 FE10 0 1 FE1 0 9 FE9 0 0 FE0 0 8 FE8 0
Note: Bits that are underlined are read-only; all other bits are read-write. Bits 0 to 15/16-Bit Framing Bit Error Counter (FE0 to FE15). These bits report either the number of LOF occurrences or the number of framing bit errors received. The FECR is configured through the host by the frame-error-counting control bit (FECC) in the control register 1 (Section 5.2). The possible configurations are shown below. FECC 0 1 FRAME ERROR-COUNT REGISTER (FECR) CONFIGURATION Count LOF Occurrences Count Only F-Bit Errors
When the FECR is configured to count LOF occurrences, the FECR increments by one each time the device loses receive synchronization. When the FECR is configured to count frame bit errors, it can be configured through the ECC control bit in the control register (Section 5.2) to either continue counting frame bit errors during an LOF or not. Register Name: Register Description: Register Address: Bit # Name Default Bit # Name Default 7 CRC7 0 15 CRC15 0 6 CRC6 0 14 CRC14 0 CRCCR CRC Error-Count Register 1Eh 5 CRC5 0 13 CRC13 0 4 CRC4 0 12 CRC12 0 3 CRC3 0 11 CRC11 0 2 CRC2 0 10 CRC10 0 1 CRC1 0 9 CRC9 0 0 CRC0 0 8 CRC8 0
Note: Bits that are underlined are read-only; all other bits are read-write. Bits 0 to 15/16-Bit CRC Error Counter (CRC0 to CRC15). These bits report the number of CRC errors received. The CRCCR can be configured by the ECC control bit in the control register (Section 5.2) to either continue counting CRC errors during an LOF or not.
60 of 107
DS3160
6. BERT 6.1 General Description
The BERT block is capable of generating and detecting the following patterns: the pseudorandom patterns 27 - 1, 211 - 1, 215 - 1, and QRSS a repetitive pattern from 1 to 32 bits in length alternating (16-bit) words that flip every 1 to 256 words The BERT receiver has a 32-bit bit counter and a 24-bit error counter. It can generate interrupts on detecting a bit error, a change in synchronization, or if an overflow occurs in the bit and error counters. See Section 6.2 for details on status bits and interrupts from the BERT block. To activate the BERT block, the host must configure the BERT mux by the BERT mux control register (Section 6.2).
6.2 BERT Register Description
Register Name: Register Description: Register Address: Bit # Name Default Bit # Name Default 7 N/A 0 15 N/A 0 6 N/A 0 14 N/A 0 BERTMC BERT Mux Control Register 20h 5 N/A 0 13 N/A 0 4 N/A 0 12 N/A 0 3 TBS1 0 11 N/A 0 2 TBS0 0 10 N/A 0 1 RBS1 0 9 N/A 0 0 RBS0 0 8 N/A 0
Note: Bits that are underlined are read-only; all other bits are read-write. Bits 0 to 1/Receive BERT Select Bits 0 to 1 (RBS0 to RBS1). These bits enable/disable the BERT receiver and select how BERT data is sent to the receiver (active timeslot bits only or active timeslot and the overhead bits). RBSI 0 0 1 1 RBS0 0 1 0 1 DESCRIPTION Disabled Active Timeslots Only 6Mbps: TS1-TS96 4.5Mbps: TS1-TS72 3Mbps: TS1-TS48 1.5Mbps: TS1-TS24 Entire Frame including F-Bits (all 789 bits) Illegal State
61 of 107
DS3160 Bits 2 to 3/Transmit BERT Select Bits 0 to 1 (TBS0 to TBS1). These bits determine if the transmit BERT is used to replace the normal transmit data at the transmit formatter. If these bits are set to 01, data from the transmit BERT is only placed in the active timeslot bit positions of the data stream. If these bits are set to 10, then data from the transmit BERT is placed into all bit positions of the data stream (all timeslots and the overhead bits). TBSI 0 TBS0 0 DESCRIPTION Disabled Active Timeslots Only 6Mbps: TS1-TS96 4.5Mbps: TS1-TS72 3Mbps: TS1-TS48 1.5Mbps: TS1-TS24 Entire Frame including F-Bits (all 789 bits) Illegal State
0
1
1 1
0 1
62 of 107
DS3160 Register Name: Register Description: Register Address: Bit # Name Default Bit # Name Default 7 N/A 0 15 IESYNC 0 6 TINV 0 14 IEBED 0 BERTC0 BERT Control Register 0 22h 5 RINV 0 13 IEOF 0 4 PS2 0 12 N/A 0 3 PS1 0 11 RPL3 0 2 PS0 0 10 RPL2 0 1 LC 0 9 RPL1 0 0 RESYNC 0 8 RPL0 0
Note: Bits that are underlined are read-only; all other bits are read-write. Bit 0/Force Resynchronization (RESYNC). A low-to-high transition forces the receive BERT synchronizer to resynchronize to the incoming data stream. This bit should be toggled from low to high whenever the host wishes to acquire synchronization on a new pattern. Must be cleared and set again for a subsequent resynchronization. Bit 1/Load Bit and Error Counters (LC). A low-to-high transition latches the current bit and error counts into the host accessible registers BERTBC0, BERTBC1 (bit count) and BERTEC0, BERTEC1 (error count), and clears the internal count. This bit should be toggled from low to high whenever the host wishes to begin a new read-acquisition period. Must be cleared and set again for a subsequent loads. Bit 2/Pattern Select Bit 0 (PS0), Bit 3/Pattern Select Bit 0 (PS1), Bit 4/Pattern Select Bit 1 (PS2) 000 = Pseudorandom Pattern 27 - 1 (ANSI T1.403-1999 Annex B) 001 = Pseudorandom Pattern 211 - 1 (ITU O.153) 010 = Pseudorandom Pattern 215 - 1 (ITU O.151) 011 = Pseudorandom Pattern QRSS (2E20 - 1 with a 1 forced if the next 14 positions are 0) 100 = Repetitive Pattern 101 = Alternating Word Pattern 110 = Illegal State 111 = Illegal State Bit 5/Receive Invert Data-Enable (RINV) 0 = do not invert the incoming data stream 1 = invert the incoming data stream Bit 6/Transmit Invert Data-Enable (TINV) 0 = do not invert the outgoing data stream 1 = invert the outgoing data stream
63 of 107
DS3160 Bit 8/Repetitive Pattern Length Bit 0 (RPL0), Bit 9/Repetitive Pattern Length Bit 1 (RPL1), Bit 10/Repetitive Pattern Length Bit 2 (RPL2), Bit 11/Repetitive Pattern Length Bit 3 (RPL3). RPL0 is the LSB and RPL3 is the MSB of a nibble that describes the length of the repetitive pattern. The valid range is 17 (0000) to 32 (1111). These bits are ignored if the receive BERT is programmed for a pseudorandom pattern. To create repetitive patterns less than 17 bits in length, the user must set the length to an integer number of the desired length that is less than or equal to 32. For example, to create a 6-bit pattern, the user can set the length to 18 (0001) or to 24 (0111) or to 30 (1101).
Repetitive Pattern Length Map
LENGTH (bits) 17 21 25 29 CODE 0000 0100 1000 1100 LENGTH (bits) 18 22 26 30 CODE 0001 0101 1001 1101 LENGTH (bits) 19 23 27 31 CODE 0010 0110 1010 1101 LENGTH (bits) 20 24 28 32 CODE 0011 0111 1011 1111
Bit 13/Interrupt Enable for Counter Overflow (IEOF). Allows the receive BERT to cause an interrupt if either the bit counter or the error counter overflows (Figure 6.2A). 0 = interrupt masked 1 = interrupt enabled Bit 14/Interrupt Enable for Bit Error Detected (IEBED). Allows the receive BERT to cause an interrupt if a bit error is detected (Figure 6.2A). 0 = interrupt masked 1 = interrupt enabled Bit 15/Interrupt Enable for Change-of-Synchronization Status (IESYNC). Allows the receive BERT to cause an interrupt if there is a change of state in the synchronization status (i.e., the receive BERT either goes into or out of synchronization) (Figure 6.2A). 0 = interrupt masked 1 = interrupt enabled
64 of 107
DS3160 Register Name: BERTC1 Register Description: BERT Control Register 1 Register Address: 24h Bit # Name Default Bit # Name Default 7 EIB2 0 15 AWC7 0 6 EIB1 0 14 AWC6 0 5 EIB0 0 13 AWC5 0 4 SBE 0 12 AWC4 0 3 N/A 0 11 AWC3 0 2 N/A 0 10 AWC2 0 1 N/A 0 9 AWC1 0 0 TC 0 8 AWC0 0
Note: Bits that are underlined are read-only; all other bits are read-write. Bit 0/Transmit Pattern Load (TC). A low-to-high transition loads the pattern generator with the repetitive or pseudorandom pattern that is to be generated. This bit should be toggled from low to high whenever the host wishes to load a new pattern. Must be cleared and set again for subsequent loads. Bit 4/Single Bit-Error Insert (SBE). A low-to-high transition creates a single bit error. Must be cleared and set again for a subsequent bit error to be inserted. Bit 5/Error Insert Bit 0 (EIB0), Bit 6/Error Insert Bit 1 (EIB1), Bit 7/Error Insert Bit 2 (EIB2). Automatically inserts bit errors at the prescribed rate into the generated data pattern. Useful for verifying error-detection operation.
EIB2 0 0 0 0 1 1 1 1 EIB1 0 0 1 1 0 0 1 1 EIB0 0 1 0 1 0 1 0 1 ERROR RATE INSERTED No errors automatically inserted 10-1 (1 error per 10 bits) 10-2 (1 error per 100 bits) 10-3 (1 error per 1kb) 10-4 (1 error per 10kb) 10-5 (1 error per 100kb) 10-6 (1 error per 1Mb) 10-7 (1 error per 10Mb)
Bits 8 to 15/Alternating Word Count Rate (AWC0 to AWC7). When the BERT is programmed in the alternating word mode, the word in BERTRP0 is transmitted for the count loaded into this register plus one, then flips to the other word loaded in BERTRP1 and again repeats for the same number of times. The valid count range is from 00h to FFh.
AWC VALUE 00h 01h 02h 06h 07h FFh ALTERNATING COUNT ACTION Send the word in BERTRP0 1 time followed by the word in BERTRP1 1 time... Send the word in BERTRP0 2 times followed by the word in BERTRP1 2 times... Send the word in BERTRP0 3 times followed by the word in BERTRP1 3 times... Send the word in BERTRP0 7 times followed by the word in BERTRP1 7 times... Send the word in BERTRP0 8 times followed by the word in BERTRP1 8 times... Send the word in BERTRP0 256 times followed by the word in BERTRP1 256 times...
65 of 107
DS3160 Register Name: Register Description: Register Address: Bit # Name Default Bit # Name Default 7 RP7 0 15 RP15 0 6 RP6 0 14 RP14 0 BERTRP0 BERT Repetitive Pattern 0 (lower word) 26h 5 RP5 0 13 RP13 0 4 RP4 0 12 RP12 0 3 RP3 0 11 RP11 0 2 RP2 0 10 RP10 0 1 RP1 0 9 RP9 0 0 RP0 0 8 RP8 0
Register Name: Register Description: Register Address: Bit # Name Default Bit # Name Default 7 RP23 0 15 RP31 0 6 RP22 0 14 RP30 0
BERTRP1 BERT Repetitive Pattern 1 (upper word) 28h 5 RP21 0 13 RP29 0 4 RP20 0 12 RP28 0 3 RP19 0 11 RP27 0 2 RP18 0 10 RP26 0 1 RP17 0 9 RP25 0 0 RP16 0 8 RP24 0
Note: Bits that are underlined are read-only; all other bits are read-write. Bits 0 to 31/BERT Repetitive Pattern Set (RP0 TO RP31). RP0 is the LSB and RP31 is the MSB. These registers must be properly loaded for the BERT to properly generate and synchronize to either a repetitive pattern, a pseudorandom pattern, or an alternating word pattern. For a repetitive pattern that is fewer than 17 bits, the pattern should be repeated so that all 32 bits are used to describe the pattern. For example, if the pattern was the repeating 5-bit pattern ...01101... (where the right-most bit is 1, sent first and received first), then BERTRP0 should be loaded with xB5AD and BERTRP1 should be loaded with x5AD6. For a pseudorandom pattern, both registers should be loaded with all 1's (i.e., xFFFF). For an alternating word pattern, one word should be placed into BERTRP0 and the other word should be placed into BERTRP1. For example, if the DDS stress pattern "7E" is to be described, the user would place x0000 in BERTRP0 and x7E7E in BERTRP1 and the alternating word counter would be set to 50 (decimal) to allow 100 bytes of 00h followed by 100 bytes of 7Eh to be sent and received.
66 of 107
DS3160 Register Name: Register Description: Register Address: Bit # Name Default Bit # Name Default 7 BBC7 0 15 BBC15 0 BERTBC0 BERT 32-Bit Bit Counter (lower word) 2Ah 6 BBC6 0 14 BBC14 0 5 BBC5 0 13 BBC13 0 4 BBC4 0 12 BBC12 0 3 BBC3 0 11 BBC11 0 2 BBC2 0 10 BBC10 0 1 BBC1 0 9 BBC9 0 0 BBC0 0 8 BBC8 0
Register Name: Register Description: Register Address: Bit # Name Default Bit # Name Default 7 BBC23 0 15 BBC31 0
BERTBC1 BERT 32-Bit Bit Counter (upper word) 2Ch 6 BBC22 0 14 BBC30 0 5 BBC21 0 13 BBC29 0 4 BBC20 0 12 BBC28 0 3 BBC19 0 11 BBC27 0 2 BBC18 0 10 BBC26 0 1 BBC17 0 9 BBC25 0 0 BBC16 0 8 BBC24 0
Note: Bits that are underlined are read-only; all other bits are read-write. Bits 0 to 31/BERT 32-Bit Bit Counter (BBC0 to BBC31). This 32-bit counter increments for each data bit (i.e., clock received). This counter is not disabled when the receive BERT loses synchronization. It can be cleared by toggling the LC control bit in BERTC0. It saturates and does not rollover. Upon saturation, the BBCO status bit in the BERTEC0 register is set. This error counter starts counting when the BERT goes into receive synchronization (RLOS = 0 or SYNC = 1) and does not stop counting when the BERT loses synchronization. It is recommended that the host toggle the LC bit in the BERTC0 register once the BERT has synchronized and then toggle the LC bit again when the error-checking period is complete. If the device loses synchronization during this period, then the counting results are suspect. The transition of the LC bit from low to high starts an update cycle. This update cycle has a latency of three clock periods from the setting of the LC bit from (0) to (1). Therefore, each read by the host requires a 475ns period (158.43ns x 3 clocks) to retrieve data from the BERT bit count registers.
67 of 107
DS3160 Register Name Register Description: Register Address: Bit # Name Default Bit # Name Default 7 N/A 0 15 BEC7 0 6 RA1 0 14 BEC6 0 BERTEC0 BERT 24-Bit Error Counter (lower) and Status Information 2Eh 5 RA0 0 13 BEC5 0 4 RLOS 1 12 BEC4 0 3 BED 0 11 BEC3 0 2 BBCO 0 10 BEC2 0 1 BECO 0 9 BEC1 0 0 SYNC 0 8 BEC0 0
Note: Bits that are underlined are read-only; all other bits are read-write. Bit 0/Real-Time Synchronization Status (SYNC). Read-only real-time status of the synchronizer (this bit is not latched). It is set when the incoming pattern matches for 32 consecutive bit positions. It is cleared when six or more bits out of 64 are received in error. This bit cannot cause a hardware interrupt to occur. Bit 1/BERT Error-Counter Overflow (BECO). A latched read-only event-status bit that is set when the 24-bit BERT error counter (BEC) saturates. Cleared when read and is not set again until another overflow occurs (i.e., the BEC counter must be cleared and allowed to overflow again). The setting of this status bit can cause a hardware interrupt to occur if the IEOF bit in BERT control register 0 is set to a 1 and the BERT bit in the interrupt mask for the MSR (IMSR) register is set to a 1. The interrupt is allowed to clear when this bit is read (Figure 6.2A). Bit 2/BERT Bit Counter Overflow (BBCO). A latched read-only event-status bit that is set when the 32-bit BERT bit counter (BBC) saturates. Cleared when read and is not set again until another overflow occurs (i.e., the BBC counter must be cleared and allowed to overflow again). The setting of this status bit can cause a hardware interrupt to occur if the IEOF bit in BERT control register 0 is set to a 1 and the BERT bit in the interrupt mask for MSR (IMSR) register is set to a 1. The interrupt is allowed to clear when this bit is read (Figure 6.2A). Bit 3/Bit Error Detected (BED). A latched read-only event-status bit that is set when a bit error is detected. The receive BERT must be in synchronization for it to detect bit errors. This bit is cleared when read. The setting of this status bit can cause a hardware interrupt to occur if the IEBED bit in BERT control register 0 is set to a 1 and the BERT bit in the interrupt mask for the MSR (IMSR) register is set to a 1. The interrupt is allowed to clear when this bit is read (Figure 6.2A). Bit 4/Receive Loss of Synchronization (RLOS). A latched read-only alarm-status bit that is set whenever the receive BERT begins searching for a pattern. Once synchronization is achieved, this bit remains set until read. A change in this status bit (i.e., the synchronizer goes into or out of synchronization) can cause a hardware interrupt to occur if the IESYNC bit in BERT control register 0 is set to a 1 and the BERT bit in the interrupt mask for the MSR (IMSR) register is set to a 1. The interrupt is allowed to clear when this bit is read (Figure 6.2A). Bit 5/Receive All 0's (RA0). A latched read-only status bit that is set when 31 consecutive 0's are received. Allowed to be cleared once a 1 is received. This bit cannot cause a hardware interrupt to occur.
68 of 107
DS3160 Bit 6/Receive All 1's (RA1). A latched read-only status bit that is set when 31 consecutive 1's are received. Allowed to be cleared once a 0 is received. This bit cannot cause a hardware interrupt to occur. Bits 8 to 15/BERT 24-Bit Error Counter (BEC0 to BEC7). Lower byte of the 24-bit counter. See the BERTEC1 register description for details.
Figure 6.2A. BERT STATUS BIT FLOW
BERT STATUS REGISTER MASTER STATUS REGISTER
INTERNAL RLOS SIGNAL FROM BERT
ALARM LATCH
RLOS (BERTEC0 BIT 4)
EVENT LATCH
CHANGE IN STATE DETECT
MASK
EVENT LATCH
IESYNC (BERTC0 BIT 15) INTERNAL BIT ERROR DETECTED SIGNAL FROM BERT BED (BERTEC0 BIT 3) MASK IEBED (BERTC0 BIT 14) INTERNAL COUNTER OVERFLOW SIGNAL FROM BERT BECO OR BBCO (BERTEC0 BITS 1 AND 2) MASK IEOF (BERTC0 BIT 13)
EVENT LATCH EVENT LATCH
EVENT LATCH
OR
BERT STATUS BIT (MSR BIT 2) MASK
EVENT LATCH
INT HARDWARE SIGNAL
BERT (IMSR BIT 2)
EVENT LATCH CLEAR ON MSR READ
69 of 107
DS3160 Register Name: Register Description: Register Address: Bit # Name Default Bit # Name Default 7 BEC15 0 15 BEC23 0 BERTEC1 BERT 24-Bit Error Counter (upper) 30h 6 BEC14 0 14 BEC22 0 5 BEC13 0 13 BEC21 0 4 BEC12 0 12 BEC20 0 3 BEC11 0 11 BEC19 0 2 BEC10 0 10 BEC18 0 1 BEC9 0 9 BEC17 0 0 BEC8 0 8 BEC16 0
Note: Bits that are underlined are read-only; all other bits are read-write. Bits 0 to 15/BERT 24-Bit Error Counter (BEC8 to BEC23). Upper two bytes of the 24-bit counter. This 24-bit counter increments for each data bit received in error. This counter is not disabled when the receive BERT loses synchronization; it can be cleared by toggling the LC control bit in BERTC0. This counter saturates and does not rollover. Upon saturation, the BECO status bit in the BERTEC0 register is set. This error counter starts counting when the BERT goes into receive synchronization (RLOS = 0 or SYNC = 1) and it does not stop counting when the BERT loses synchronization. It is recommended that the host toggle the LC bit in BERTC0 register once the BERT has synchronized and then toggle the LC bit again when the error-checking period is complete. If the device loses synchronization during this period, then the counting results are suspect. As stated in the LC bit description section, the LC bit must be toggled from low to high to begin an update cycle. This update cycle has a latency of three clock periods from the setting of the LC bit from (0) to (1). Therefore, each read by the host requires a 475ns period (158.43ns x 3 clocks) to retrieve data from the BERT error count registers.
70 of 107
DS3160
7. HDLC CONTROLLER 7.1 General Description
The DS3160 contains an on-board HDLC controller with 256-byte buffers in the transmit and receive paths.
Receive Operation
On reset, the receive HDLC controller flushes the receive FIFO and begins searching for a new incoming HDLC packet. The receive HDLC controller performs a bit by bit search for an HDLC packet and when one is detected, it zero destuffs the incoming data stream and automatically byte aligns to it and places the incoming bytes as they are received into the receive FIFO. The first byte of each packet is marked in the receive FIFO by setting the opening byte (OBYTE) bit. Upon detecting a closing flag, the device checks the 16-bit CRC to see if the packet is valid or not and then marks the last byte of the packet in the receive FIFO by setting the closing byte (CBYTE) bit. The CRC is not passed to the receive FIFO. When the CBYTE is set, the host can obtain the status of the incoming packet through the packet status bits (PS0 and PS1). Incoming packets can be separated by a single flag or even by two flags that share a common 0. If the receive FIFO ever fills beyond capacity, the new incoming packet data is discarded and the receive FIFO overrun (ROVR) status bit is set. If such a scenario occurs, then the last packet in the FIFO is suspect and should be discarded. When an overflow occurs, the receive HDLC stops accepting packets until either the FIFO is completely emptied or reset. If the receive HDLC controller ever detects an incoming abort (seven or more 1's in a row), it sets the receive-abort-sequence-detected (RABT) status bit. If an abort sequence is detected in the middle of an incoming packet, then the receive HDLC controller sets the packet status bits accordingly. The receive HDLC has been designed to minimize its real-time host-support requirements. The receive FIFO is 256 bytes, which is deep. The host is notified when a new message has begun (receive-packetstart status bit) to be received and when a packet has completed (receive-packet-end status bit). Also the host can be notified when the FIFO has filled beyond a programmable level called the high watermark. The host reads the incoming packet data out of the receive FIFO a byte at a time. When the receive FIFO is empty, the REMPTY bit in the FIFO is set.
Transmit Operation
On reset, the transmit HDLC controller flushes the transmit FIFO and transmits an abort followed by either 7Eh or FFh (depending on the setting of the TFS control bit) continuously. The transmit HDLC then waits until there are at least two bytes in the transmit FIFO before beginning to send the packet. The transmit HDLC automatically adds an opening flag of 7Eh to the beginning of the packet and zero stuffs the outgoing data stream. When the transmit HDLC controller detects that the TMEND bit in the transmit FIFO is set, it automatically calculates and adds in the 16-bit CRC checksum, followed by a closing flag of 7Eh. If the FIFO is empty, then it begins sending either 7Eh or FFh continuously. If there is some more data in the FIFO, then the transmit HDLC automatically adds in the opening flag and sends the next packet. Between consecutive packets there is always at least two flags of 7Eh. If the transmit FIFO ever empties when a packet is being sent (i.e., before the TMEND bit is set), then the transmit HDLC controller sends an abort of seven 1's in a row (FEh), followed by a continuous transmission of either 7Eh (flags) or FFh (idle), and the transmit-FIFO-underrun (TUDR) status bit is set. When the FIFO underruns, the transmit HDLC controller should be reset by the host.
71 of 107
DS3160 The transmit HDLC has been designed to minimize its real-time host support requirements. The transmit FIFO is 256 bytes. Once the host has loaded an outgoing packet, it can monitor the transmit packet-end (TEND) status bit to know when the packet has finished being transmitted. The host also can be notified when the FIFO has emptied below a programmable level called the low watermark. The host must never overfill the FIFO. To keep this from occurring, the host can obtain the real-time depth of the transmit FIFO by the transmit FIFO level bits in the HDLC status register (HSR). The transmit remote-alarm indication (TRAI) function shares M-bits with the HDLC controller. Transmission of RAI does not interrupt an outgoing HDLC frame in progress. Transmission of RAI can only occur when the HDLC controller is in the idle state (sending flags or idles between transmit frames). An HDLC packet can interrupt an RAI transmission. Transmission of the RAI resumes when the HDLC packet is finished being sent.
72 of 107
DS3160
7.2 HDLC Control and FIFO Register Description
Register Name: Register Description: Register Address: Bit # Name Default Bit # Name Default 7 N/A 0 15 RHWMS2 0 6 RHR 0 14 RHWMS1 0 HCR HDLC Control Register 32h 5 THR 0 4 TFS 0 3 N/A 0 2 TCRCI 0 11 TLWMS1 0 1 TZSD 0 10 TLWMS0 0 0 TCRCD 0 9 RID 0 8 TID 0
13 RHWMS0 0
12 TLWMS2 0
Note: Bits that are underlined are read-only; all other bits are read-write. Bit 0/Transmit CRC Defeat (TCRCD). When this bit is set low, the HDLC automatically calculates and appends the 16-bit CRC to the outgoing HDLC message. When this bit is set high, the device does not append the CRC to the outgoing message. 0 = enable CRC generation (normal operation) 1 = disable CRC generation Bit 1/Transmit Zero Stuffer Defeat (TZSD). When this bit is set low, the HDLC automatically enables the zero stuffer in between the opening and closing flags of the HDLC message. When this bit is set high, the device does not enable the zero stuffer under any condition. 0 = enable zero stuffer (normal operation) 1 = disable zero stuffer Bit 2/Transmit CRC Invert (TCRCI). When this bit is set low, the HDLC allows the CRC to be generated normally. When this bit is set high, the device inverts all 16 bits of the generated CRC. This bit is ignored when the CRC generation is disabled (TCRCD = 1). This bit is useful in testing HDLC operation. 0 = do not invert the generated CRC (normal operation) 1 = invert the generated CRC Bit 4/Transmit Flag/Idle Select (TFS). This control bit determines whether flags or idle bytes are transmitted in between packets. 0 = 7Eh (flags) 1 = FFh (idle) Bit 5/Transmit HDLC Reset (THR). A 0-to-1 transition resets the transmit HDLC controller. Must be cleared and set again for a subsequent reset. A reset flushes the current contents of the transmit FIFO and causes one FEh abort sequence (seven 1's in a row) to be sent followed by either 7Eh (flags) or FFh (idle) until a new packet is initiated by writing new data (at least two bytes) into the FIFO. Bit 6/Receive HDLC Reset (RHR). A 0-to-1 transition resets the receive HDLC controller. Must be cleared and set again for a subsequent reset. A reset flushes the current contents of the receive FIFO and causes the receive HDLC controller to begin searching for a new incoming HDLC packet.
73 of 107
DS3160 Bit 8/Transmit Invert Data (TID). The control bit determines whether all of the data from the HDLC controller (including flags and CRC checksum) are inverted after processing. 0 = do not invert data (normal operation) 1 = invert all data Bit 9/Receive Invert Data (RID). The control bit determines whether all of the data into the HDLC controller (including flags and CRC checksum) are inverted before processing. 0 = do not invert data (normal operation) 1 = invert all data Bits 10 to 12/Transmit Low Watermark Select Bits (TLWMS0 to TLWMS2). These control bits determine when the HDLC controller should set the TLWM status bit in the HDLC status register (HSR). The TLWM status bit is set to a 1 when the transmit FIFO contains less than the number of bytes configured by these bits. TLWMS2 0 0 0 0 1 1 1 1 TLWMS1 0 0 1 1 0 0 1 1 TLWMS0 0 1 0 1 0 1 0 1 TRANSMIT LOW WATERMARK (BYTES) 16 48 80 112 144 176 208 240
Bits 13 to 15/Receive High Watermark Select Bits (RHWMS0 to RHWMS2). These control bits determine when the HDLC controller should set the RHWM status bit in the HDLC status register (HSR). The RHWM status bit is set to a 1 when the receive FIFO contains more than the number of bytes configured by these bits. RHWMS2 0 0 0 0 1 1 1 1 RHWMS1 0 0 1 1 0 0 1 1 RHWMS0 0 1 0 1 0 1 0 1 RECEIVE HIGH WATERMARK (BYTES) 16 48 80 112 144 176 208 240
74 of 107
DS3160 Register Name: Register Description: Register Address: RHDLC Receive HDLC FIFO 34h
Note: When the CPU bus is operated in the 8-bit mode (CMS = 1), the host should always read the lower byte (bits 0 to 7) first followed by the upper byte (bits 8 to 15). Bit # Name Default Bit # Name Default 7 D7 0 15 N/A 0 6 D6 0 14 N/A 0 5 D5 0 13 N/A 0 4 D4 0 12 N/A 0 3 D3 0 11 PS1 0 2 D2 0 10 PS0 0 1 D1 0 9 CBYTE 0 0 D0 0 8 OBYTE 0
Note 1: Bits that are underlined are read-only; all other bits are read-write. Note 2: Packets with three or fewer bytes (including the CRC FCS) in between flags are invalid and the data that appears in the FIFO in such instances is meaningless. If only one byte is received between flags, then both the CBYTE and OBYTE bits are set. If two bytes are received, then OBYTE is set for the first one received and CBYTE is set for the second byte received. If three bytes are received, then OBYTE is set for the first one received and CBYTE is set for the third byte received. In all of these cases, the packet status is reported as PS0 = 0 / PS1 = 1, and the data in the FIFO should be ignored. Bits 0 to 7/Receive FIFO Data (D0 to D7). Data from the receive FIFO can be read from these bits. D0 is the LSB and is received first while D7 is the MSB and is received last. Bit 8/Opening Byte (OBYTE). This bit is set to a 1 when the byte available at the D0 to D7 bits from the receive FIFO is the first byte of an HDLC packet. Bit 9/Closing Byte (CBYTE). This bit is set to a 1 when the byte available at the D0 to D7 bits from the receive FIFO is the last byte of an HDLC packet whether the packet is valid or not. The host can use the PS0 and PS1 bits to determine if the packet is valid or not. Bits 10 and 11/Packet Status Bits 0 and 1 (PS0 and PS1). These bits are only valid when the CBYTE bit is set to a 1. These bits inform the host of the validity of the incoming packet and the cause of the problem if the packet was received in error. PS1 0 0 1 1 PS0 0 1 0 1 PACKET STATUS Valid Invalid Invalid Invalid REASON FOR INVALID RECEPTION OF THE PACKET -- Corrupt CRC Incoming packet was either too short (three or fewer bytes including the CRC) or did not contain an integral number of octets Abort sequence detected
75 of 107
DS3160 Register Name: Register Description: Register Address: THDLC Transmit HDLC FIFO 36h
Note: When the CPU bus is operated in the 8-bit mode (CMS = 1), the host should always write to the lower byte (bits 0 to 7) first followed by the upper byte (bits 8 to 15). Bit # Name Default Bit # Name Default 7 D7 0 15 N/A 0 6 D6 0 14 N/A 0 5 D5 0 13 N/A 0 4 D4 0 12 N/A 0 3 D3 0 11 N/A 0 2 D2 0 10 N/A 0 1 D1 0 9 N/A 0 0 D0 0 8 TMEND 0
Note 1: The THDLC is a write-only register. Note 2: The transmit FIFO can be filled to a maximum capacity of 256 bytes. When the transmit FIFO is full, it does not accept any additional data. Bits 0 to 7/Transmit FIFO Data (D0 to D7). Data for the transmit FIFO can be written to these bits. D0 is the LSB and is transmitted first while D7 is the MSB and is transmitted last. Bit 8/Transmit Message End (TMEND). This bit is used to delineate multiple messages in the transmit FIFO. It should be set to a 1 when the last byte of a packet is written to the transmit FIFO. The setting of this bit indicates to the HDLC controller that the message is complete and that it should calculate and add in the CRC check sum and at least two flags. This bit should be set to 0 for all other data written to the FIFO. All HDLC messages must be at least 2 bytes in length.
76 of 107
DS3160
7.3 HDLC Status and Interrupt Register Description
Note: See Figure 7.2A for details on the signal flow for the status bits in the HSR register. Register Name: Register Description: Register Address: Bit # Name Default Bit # Name Default 7 TUDR 0 15 RABT 0 6 RPE 0 14 REMPTY 1 HSR HDLC Status Register 38h 5 RPS 0 13 ROVR 0 4 RHWM 0 12 TEMPTY 1 3 N/A 0 11 TFL3 0 2 TLWM 1 10 TFL2 0 1 N/A 0 9 TFL1 0 0 TEND 0 8 TFL0 0
Note: Bits that are underlined are read-only; all other bits are read-write. Bit 0/Transmit Packet End (TEND). This latched read-only event-status bit is set to a 1 each time the transmit HDLC controller reads a transmit FIFO byte with the corresponding TMEND bit set, or if an FIFO underrun occurs. This bit is cleared when read and is not set again until another message end is detected. The setting of this bit can cause a hardware interrupt to occur if the TEND bit in the interrupt mask for the HSR (IHSR) register is set to a 1 and the HDLC bit in the interrupt mask for the MSR (IMSR) register is set to a 1. The interrupt is allowed to clear when this bit is read. Bit 2/Transmit FIFO Low Watermark (TLWM). This read-only real-time status bit is set to a 1 when the transmit FIFO contains less than the number of bytes configured by the transmit low-watermark setting control bits (TLWMS0 to TLWMS2) in the HDLC control register (HCR). This bit is cleared when the FIFO fills beyond the low watermark. The setting of this bit can cause a hardware interrupt to occur if the TLWM bit in the interrupt mask for the HSR (IHSR) register is set to a 1 and the HDLC bit in the interrupt mask for the MSR (IMSR) register is set to a 1. Bit 4/Receive FIFO High Watermark (RHWM). This read-only real-time status bit is set to a 1 when the receive FIFO contains more than the number of bytes configured by the receive high-watermark setting control bits (RHWMS0 to RHWMS2) in the HDLC control register (HCR). This bit is cleared when the FIFO empties below the high watermark. The setting of this bit can cause a hardware interrupt to occur if the RHWM bit in the interrupt mask for the HSR (IHSR) register is set to a 1 and the HDLC bit in the interrupt mask for the MSR (IMSR) register is set to a 1. Bit 5/Receive Packet Start (RPS). This latched read-only event-status bit is set to a 1 each time the HDLC controller detects an opening byte of an HDLC packet. This bit is cleared when read and is not set again until another message is detected. The setting of this bit can cause a hardware interrupt to occur if the RPS bit in the interrupt mask for the HSR (IHSR) register is set to a 1 and the HDLC bit in the interrupt mask for the MSR (IMSR) register is set to a 1. The interrupt is allowed to clear when this bit is read. Bit 6/Receive Packet End (RPE). This latched read-only event-status bit is set to a 1 each time the HDLC controller detects the finish of a message whether the packet is valid (CRC correct) or not (bad
77 of 107
DS3160 CRC, abort sequence detected, packet too small, not an integral number of octets, or an overrun occurred). This bit is cleared when read and is not set again until another message end is detected. The setting of this bit can cause a hardware interrupt to occur if the RPE bit in the interrupt mask for the HSR (IHSR) register is set to a 1 and the HDLC bit in the interrupt mask for the MSR (IMSR) register is set to a 1. The interrupt is allowed to clear when this bit is read. Bit 7/Transmit FIFO Underrun (TUDR). This latched read-only event-status bit is set to a 1 each time the transmit FIFO underruns and an abort is automatically sent. This bit is cleared when read and is not set again until another underrun occurs (i.e., the FIFO has been written to and then allowed to empty again). The setting of this bit can cause a hardware interrupt to occur if the TUDR bit in the interrupt mask for the HSR (IHSR) register is set to a 1 and the HDLC bit in the interrupt mask for the MSR (IMSR) register is set to a 1. The interrupt is allowed to clear when this bit is read. Bit 8 to 11/Transmit FIFO Level Bits 0 to 3 (TFL0 to TFL3). These read-only real-time status bits indicate the current depth of the transmit FIFO with a 16-byte resolution. These status bits cannot cause a hardware interrupt. TFL3 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 TFL2 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 TFL1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 TFL0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 TRANSMIT FIFO LEVEL (BYTES) Empty to 15 16 to 31 32 to 47 48 to 63 64 to 79 80 to 95 96 to 111 112 to 127 128 to 143 144 to 159 160 to 175 176 to 191 192 to 207 208 to 223 224 to 239 240 to 256
Bit 12/Transmit FIFO Empty (TEMPTY). This read-only real-time status bit is set to a 1 when the transmit FIFO is empty. It is cleared when the transmit FIFO contains one or more bytes. This status bit cannot cause a hardware interrupt. Bit 13/Receive FIFO Overrun (ROVR). This latched read-only event-status bit is set to a 1 each time the receive FIFO overruns. This bit is cleared when read and is not set again until another overrun occurs (i.e., the FIFO has been read from and then allowed to fill up again). The setting of this bit can cause a hardware interrupt to occur if the ROVR bit in the interrupt mask for the HSR (IHSR) register is set to a 1 and the HDLC bit in the interrupt mask for the MSR (IMSR) register is set to a 1. The interrupt is allowed to clear when this bit is read.
78 of 107
DS3160 Bit 14/Receive FIFO Empty (REMPTY). This read-only real-time bit is set to a 1 when the receive FIFO is empty. It is cleared when the receive FIFO contains one or more bytes. This status bit cannot cause a hardware interrupt. Bit 15/Receive Abort Sequence Detected (RABT). This latched read-only event-status bit is set to a 1 each time the receive HDLC controller detects seven or more 1's in a row during packet reception. If the receive HDLC is not currently receiving a packet, then seven or more 1's in a row do not trigger this status bit. This bit is cleared when read and is not set again until another abort is detected (at least one valid flag must be detected before another abort can be detected). The setting of this bit can cause a hardware interrupt to occur if the RABT bit in the interrupt mask for the HSR (IHSR) register is set to a 1 and the HDLC bit in the interrupt mask for the MSR (IMSR) register is set to a 1. The interrupt is allowed to clear when this bit is read.
79 of 107
DS3160
Figure 7.2A. HSR STATUS BIT FLOW
HDLC STATUS REGISTER MASTER STATUS REGISTER
TRANSMIT PACKET END SIGNAL FROM HDLC
EVENT LATCH
TEND (HSR BIT 0)
MASK TEND (IHSR BIT 0) INTERNAL TRANSMIT LOW WATERMARK SIGNAL FROM HDLC
EVENT LATCH
TLWM (HSR BIT 2)
MASK TLWM (IHSR BIT 2) INTERNAL RECEIVE HIGH WATERMARK SIGNAL FROM HDLC
EVENT LATCH
RHWM (HSR BIT 4)
MASK RHWM (IHSR BIT 4) INTERNAL RECEIVE PACKET START SIGNAL FROM HDLC
EVENT LATCH
EVENT LATCH
RPS (HSR BIT 5)
MASK RPS (IHSR BIT 5) INTERNAL RECEIVE PACKET END SIGNAL FROM HDLC
EVENT LATCH
EVENT LATCH
RPE (HSR BIT 6)
OR
HDLC STATUS BIT (MSR BIT 3) MASK
MASK RPE (IHSR BIT 6) INTERNAL TRANSMIT FIFO UNDERRUN SIGNAL FROM HDLC
EVENT LATCH
HARDWARE SIGNAL
INT
HDLC
EVENT LATCH TUDR (HSR BIT 7) (IMSR BIT 3)
MASK TUDR (IHSR BIT 3) INTERNAL RECEIVE FIFO OVERRUN SIGNAL FROM HDLC
EVENT LATCH
EVENT LATCH
ROVR (HSR BIT 7)
MASK ROVR (IHSR BIT 13) INTERNAL RECEIVE ABORT DETECT SIGNAL FROM HDLC
EVENT LATCH
EVENT LATCH
RABT (HSR BIT 15)
MASK RABT (IHSR BIT 15)
EVENT LATCH
EVENT LATCH CLEAR ON MSR READ
80 of 107
DS3160 Register Name: Register Description: Register Address: IHSR Interrupt Mask for HDLC Status Register 3Ah
Bit # Name Default Bit # Name Default
7 TUDR 0 15 RABT 0
6 RPE 0 14 N/A 0
5 RPS 0 13 ROVR 0
4 RHWM 0 12 N/A 0
3 N/A 0 11 N/A 0
2 TLWM 0 10 N/A 0
1 N/A 0 9 N/A 0
0 TEND 0 8 N/A 0
Note: Bits that are underlined are read-only; all other bits are read-write. Bit 0/Transmit Packet End (TEND) 0 = interrupt masked 1 = interrupt unmasked Bit 2/Transmit FIFO Low Watermark (TLWM) 0 = interrupt masked 1 = interrupt unmasked Bit 4/Receive FIFO High Watermark (RHWM) 0 = interrupt masked 1 = interrupt unmasked Bit 5/Receive Packet Start (RPS) 0 = interrupt masked 1 = interrupt unmasked Bit 6/Receive Packet End (RPE) 0 = interrupt masked 1 = interrupt unmasked Bit 7/Transmit FIFO Underrun (TUDR) 0 = interrupt masked 1 = interrupt unmasked Bit 13/Receive FIFO Overrun (ROVR) 0 = interrupt masked 1 = interrupt unmasked Bit 15/Receive Abort Sequence Detected (RABT) 0 = interrupt masked 1 = interrupt unmasked
81 of 107
DS3160
8. LINE INTERFACE UNIT
The line interface unit (LIU) performs all of the functions necessary for interfacing at the physical layer lines. The device has independent receive and transmit paths (Figure 1B). The receiver performs clock and data recovery and monitors for the loss of the incoming signal. The transmitter accepts data from the formatter and creates the waveforms that are driven onto the coaxial (coax) cable.
Receiver
The DS3160 interfaces to the receive coax line by a 1:1 transformer (Figure 8A). The receiver automatically adapts to coax cable losses from 0 to 15dB, which translates into 0 to 380m of coax cable (AT&T 734A or equivalent). The receiver has excellent jitter tolerance characteristics. The receiver contains an analog LOS detector, which resides in the equalizer. If the incoming signal drops below -18dB (typ) of the nominal signal level, the analog LOS detector activates and it squelches the recovered data and forces all 0's out of the data recovery circuitry. The analog LOS detector does not clear until the signal level is above -14dB (typ) of the nominal signal level. While the device is in a loss of signal state, the RCLK output is referenced to the MCLK input.
Tx+ and Tx- Transmitter
The clock applied at the FTCLK input is used to transmit data out onto the JT2 line. Hence, FTCLK must be of transmission quality (i.e., accurate to 30ppm). The duty cycle of FTCLK is not a key parameter as long as the clock high and low times listed in Section 11 are met. The DS3160 interfaces to the transmit JT2 coax cable by a 1:1 transformer (Table 8A and Figure 8C). It drives the 75 cable and creates the proper waveforms required for interfacing to JT2 lines. The transmitter can be disabled and the Tx+ and Tx- outputs tri-stated by the master configuration register (MC1). See Section 4 for details.
Jitter Attenuator
The DS3160 contains an on-board jitter attenuator that can be placed in either the receive path or the transmit path or disabled. Options are selected through the master configuration register (MC1). See Section 4.2 in this data sheet for selection details and register bit settings. The jitter attenuator consists of a narrowband PLL to retime the LIU master clock (MCLK), a 16 x 2-bit FIFO to buffer the associated data while the clock is being retimed, and logic to prevent over/underflow of the FIFO in the presence of very large jitter amplitudes. The PLL requires a stable, accurate clock on MCLK. It has a loop bandwidth of 98.1Hz, and attenuates jitter at frequencies higher than the loop bandwidth while allowing jitter (and wander) at lower frequencies to pass through relatively unaffected. Figure 8B shows an example of jitter attenuation versus frequency.
82 of 107
DS3160
Figure 8A. EXTERNAL CONNECTION
TRANSMIT
0.1F
Tx+
0.5F 330 (1%)
AVDD AVDD
0.1F
1F
10F
0.1F
1F
10F
3.3V POWER PLANE
Tx1:1 RECEIVE
AVDD
0.1F
1F
10F
Rx+
75 (1%)
AVSS AVSS GROUND PLANE
0.5F
Rx1:1 TRANSMIT MONITOR
AVSS
DS3160
0.1F
TxMON+
0.5F 330 (1%)
DVDD DVDD
0.1F
1F
10F
3.3V POWER PLANE
TxMON1:1 RECEIVE MONITOR
0.1F
0.1F
1F
10F
RxMON+
330 (1%)
DVSS DVSS
0.5F
GROUND PLANE
RxMON1:1
83 of 107
DS3160
Figure 8B. DS3160 JITTER ATTENUATION/TRANSFER
0 0 -20
JITTER ATTENUATION (dB)
5 1 2
10
15
20
25
30
35
40
45
-40 -60 -80 -100 -120
5 10 16 24
32
40
FREQUENCY (kHz)
Table 8A. JT2 TRANSMIT WAVEFORM TEST PARAMETERS AND LIMITS
PARAMETER Rate Line Code Transmission Medium Test Measurement Point Test Termination Pulse Amplitude Pulse Shape SPECIFICATION 6.312Mbps (30ppm) 50% pulse width B8ZS 75W coax cable At the output equipment terminal 75 (1%) resistive Between 1.7Vo-p to 2.3Vo-p An isolated pulse (preceded by two 0's and followed by one or more 0's) falls within the curve listed in Figure 8C.
Table 8B. TRANSFORMER SPECIFICATIONS
PARAMETER Turns Ratio Open Circuit Primary Inductance (LMIN) Leakage Inductance (LL) DC Resistance (RDC) Frequency Response RECOMMENDED VALUE AT +25C 1:1 780mH 200nH 0.32 0.005MHz to 100MHz
Note: Transformer recommendation includes Coilcraft WB3010-PC.
84 of 107
DS3160
Figure 8C. OUTPUT SIGNAL WAVEFORM MASK
2.5 A 2.0 F 1.5 G B
1V / div
1.0
C H
0.5 D I 0.0 0.0 E
20ns/div
Table 8C. Tx+ and Tx- TEMPLATE CONSTANTS
A B C D E HORIZONTAL 0 2.4 2.4 3.2 4.0 VERTICAL 2.3 2.3 1.0 0.3 0.3 F G H I HORIZONTAL 0 0.4 1.6 1.6 VERTICAL 1.7 1.7 0.9 0.3
Table 8D. RxMON+, RxMON-, TxMON+, and TxMON- TEMPLATE CONSTANTS
A B C D E HORIZONTAL 0 2.4 2.4 3.2 4.0 VERTICAL 2.3 2.3 1.0 0.3 0.3 F G H I HORIZONTAL 0 0.4 1.6 1.6 VERTICAL 0.85 0.85 0.45 0.15
85 of 107
DS3160
9. JTAG 9.1 JTAG Description
The DS3160 device supports the standard instruction codes SAMPLE/PRELOAD, BYPASS, and EXTEST. Optional public instructions included are HIGH-Z, CLAMP, and IDCODE (Figure 9.1A). The DS3160 contains the following items that meet the requirements set by the IEEE 1149.1 standard test access port (TAP) and boundary scan architecture: Test Access Port (TAP) TAP Controller Instruction Register Bypass Register Boundary Scan Register Device Identification Register
The TAP has the necessary interface pins, namely JTCLK, JTRST , JTDI, JTDO, and JTMS. Details on these pins can be found in Section 2.9. Details about boundary scan architecture and the TAP are found in IEEE 1149.1-1990, IEEE 1149.1a-1993, and IEEE 1149.1b-1994.
Figure 9.1A. JTAG BLOCK DIAGRAM
BOUNDARY SCAN REGISTER IDENTIFICATION REGISTER MUX BYPASS REGISTER INSTRUCTION REGISTER
SELECT
TEST-ACCESS-PORT CONTROLLER
TRI-STATE
10k
10k
10k
JTDI
JTMS
JTCLK
JTRST
JTDO
86 of 107
DS3160
9.2 TAP Controller State Machine Description
This section covers the details about the operation of the test-access-port (TAP) controller state machine. The TAP controller is a finite state machine that responds to the logic level at JTMS on the rising edge of JTCLK.
Figure 9.2A. TAP CONTROLLER STATE MACHINE
Test-Logic-Reset 1 0 1 Select DR-Scan 0 1 Capture-DR 0 Shift-DR 0 1 Exit1-DR 0 Pause-DR 1 0 Exit2-DR 1 Update-DR 1 0 0 1 1 Exit1-IR 0 Pause-IR 0 Exit2-IR 1 Update-IR 1 0 1 1 Capture-IR 0 Shift-IR 0 1 Select IR-Scan 0 1
Run-Test/Idle 0
0
0
Test-Logic-Reset
Upon power-up of the DS3160, the TAP controller is in the Test-Logic-Reset state. The instruction register contains the IDCODE instruction. All system logic on the DS3160 operates normally.
Run-Test-Idle
Run-Test-Idle is used between scan operations or during specific tests. The instruction register and test register remain idle.
Select-DR-Scan
All test registers retain their previous state. With JTMS low, a rising edge of JTCLK moves the controller into the Capture-DR state and initiates a scan sequence. JTMS high moves the controller to the Select-IR-SCAN state.
87 of 107
DS3160
Capture-DR
Data can be parallel-loaded into the test data registers selected by the current instruction. If the instruction does not call for a parallel load or the selected register does not allow parallel loads, the test register remains at its current value. On the rising edge of JTCLK, the controller goes to the Shift-DR state if JTMS is low or it goes to the Exit1-DR state if JTMS is high.
Shift-DR
The test data register selected by the current instruction is connected between JTDI and JTDO and shifts data one stage towards its serial output on each rising edge of JTCLK. If a test register selected by the current instruction is not placed in the serial path, it maintains its previous state.
Exit1-DR
While in this state, a rising edge on JTCLK with JTMS high puts the controller in the Update-DR state that terminates the scanning process. A rising edge on JTCLK with JTMS low puts the controller in the Pause-DR state.
Pause-DR
Shifting of the test registers is halted while in this state. All test registers selected by the current instruction retains their previous state. The controller remains in this state while JTMS is low. A rising edge on JTCLK with JTMS high puts the controller in the Exit2-DR state.
Exit2-DR
While in this state, a rising edge on JTCLK with JTMS high puts the controller in the Update-DR state and terminates the scanning process. A rising edge on JTCLK with JTMS low enters the Shift-DR state.
Update-DR
A falling edge on JTCLK while in the Update-DR state latches the data from the shift register path of the test registers into the data output latches. This prevents changes at the parallel output due to changes in the shift register. A rising edge on JTCLK with JTMS low puts the controller in the Run-Test-Idle state. With JTMS high, the controller enters the Select-DR-Scan state.
Select-IR-Scan
All test registers retain their previous state. The instruction register remains unchanged during this state. With JTMS low, a rising edge on JTCLK moves the controller into the Capture-IR state and initiates a scan sequence for the instruction register. JTMS high during a rising edge on JTCLK puts the controller back into the Test-Logic-Reset state.
Capture-IR
The Capture-IR state is used to load the shift register in the Instruction register with a fixed value. This value is loaded on the rising edge of JTCLK. If JTMS is high on the rising edge of JTCLK, the controller enters the Exit1-IR state. If JTMS is low on the rising edge of JTCLK, the controller enters the Shift-IR state.
88 of 107
DS3160
Shift-IR
In this state, the shift register in the instruction register is connected between JTDI and JTDO and shifts data one stage for every rising edge of JTCLK towards the serial output. The parallel register and all test registers remain at their previous states. A rising edge on JTCLK with JTMS high moves the controller to the Exit1-IR state. A rising edge on JTCLK with JTMS low keeps the controller in the Shift-IR state while moving data one stage through the instruction shift register.
Exit1-IR
A rising edge on JTCLK with JTMS low puts the controller in the Pause-IR state. If JTMS is high on the rising edge of JTCLK, the controller enters the Update-IR state and terminates the scanning process.
Pause-IR
Shifting of the instruction register is halted temporarily. With JTMS high, a rising edge on JTCLK puts the controller in the Exit2-IR state. The controller remains in the Pause-IR state if JTMS is low during a rising edge on JTCLK.
Exit2-IR
A rising edge on JTCLK with JTMS low puts the controller in the Update-IR state. The controller loops back to the Shift-IR state if JTMS is high during a rising edge of JTCLK in this state.
Update-IR
The instruction shifted into the instruction shift register is latched into the parallel output on the falling edge of JTCLK as the controller enters this state. Once latched, this instruction becomes the current instruction. A rising edge on JTCLK with JTMS low puts the controller in the Run-Test-Idle state. With JTMS high, the controller enters the Select-DR-Scan state.
89 of 107
DS3160
9.3 Instruction Register and Instructions
The instruction register contains a shift register as well as a latched-parallel output, and is 3 bits in length. When the TAP controller enters the Shift-IR state, the instruction shift register is connected between JTDI and JTDO. While in the Shift-IR state, a rising edge on JTCLK with JTMS low shifts data one stage toward the serial output at JTDO. A rising edge on JTCLK in the Exit1-IR state or the Exit2-IR state with JTMS high moves the controller to the Update-IR state. The falling edge of that same JTCLK latches the data in the instruction shift register to the instruction parallel output. Instructions supported by the DS3160 and their respective operational binary codes are shown in Table 9.3A.
Table 9.3A. INSTRUCTION CODES
INSTRUCTION SAMPLE/PRELOAD BYPASS EXTEST CLAMP HIGH-Z IDCODE SELECTED REGISTER Boundary Scan Bypass Boundary Scan Bypass Bypass Device Identification INSTRUCTION CODES 010 111 000 011 100 001
SAMPLE/PRELOAD
SAMPLE/PRELOAD is a mandatory instruction for the IEEE 1149.1 specification. This instruction supports two functions. The digital I/Os of the DS3160 can be sampled at the boundary scan register without interfering with the normal operation of the device by using the Capture-DR state. SAMPLE/PRELOAD also allows the DS3160 to shift data into the boundary scan register through JTDI using the Shift-DR state.
EXTEST
EXTEST allows testing of all interconnections to the DS3160. When the EXTEST instruction is latched in the instruction register, the following actions occur. Once enabled by the Update-IR state, the parallel outputs of all digital output pins are driven. The boundary scan register is connected between JTDI and JTDO. The Capture-DR samples all digital inputs into the boundary scan register.
BYPASS
When the BYPASS instruction is latched into the parallel instruction register, JTDI connects to JTDO through the 1-bit bypass test register. This allows data to pass from JTDI to JTDO without affecting the device's normal operation.
IDCODE
When the IDCODE instruction is latched into the parallel instruction register, the identification test register is selected. The device identification code is loaded into the identification register on the rising edge of JTCLK following entry into the Capture-DR state. Shift-DR can be used to shift the identification code out serially through JTDO. During Test-Logic-Reset, the identification code is forced into the instruction register's parallel output. The device ID code always has a 1 in the LSB position. The next 11 bits identify the manufacturer's JEDEC number and number of continuation bytes followed by 16 bits for the device and 4 bits for the version. The device ID code for the DS3160 is 0000D143h.
90 of 107
DS3160
HIGH-Z
All digital outputs are placed into a high-impedance state. The bypass register is connected between JTDI and JTDO.
CLAMP
All digital outputs output data from the boundary scan parallel output while connecting the bypass register between JTDI and JTDO. The outputs do not change during the CLAMP instruction.
9.4 Test Registers
IEEE 1149.1 requires a minimum of two test registers--the bypass register and the boundary scan register. An optional test register has been included in the DS3160 design. This test register is the identification register and is used in conjunction with the IDCODE instruction and the Test-Logic-Reset state of the TAP controller.
Bypass Register
This is a single 1-bit shift register used in conjunction with the BYPASS, CLAMP, and HIGH-Z instructions and provides a short path between JTDI and JTDO.
Identification Register
The identification register contains a 32-bit shift register and a 32-bit latched-parallel output. This register is selected during the IDCODE instruction and when the TAP controller is in the Test-Logic-Reset state.
Boundary Scan Register
This register contains both a shift register path and a latched-parallel output for all control cells and digital I/O cells and is 196 bits in length. Table 9.4A lists all cell bit locations and definitions.
91 of 107
DS3160
Table 9.4A. BOUNDARY SCAN CONTROL BITS
BIT
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
SYMBOL
DPOSI DNEGI DCLKI DPOSO DNEGO DCLKO TENA1 TENA2 MCLK FTCLK FRCLK FRD FRDEN FRSOF FRLOF FRLOS FRMECU FTD FRO_ENA_N FTDEN FTSOF_ENA_N FTSOFO FTSOFI FTMEI CMS CIM CINT_ENA_N CINT_N CWR_N CRD_N CCS_N CDO[15] CDI[15] CDO[14] CDI[14] CDO[13] CDI[13] CDO[12] CDI[12] CDO[11] CDI[11] CDO[10] CDI[10] CDO[9] CDI[9] CDO[8] CDI[8] CDO[7]
PIN
99 98 97 96 95 94 93 92 91 89 87 85 84 83 82 81 80 78 -- 77 -- 76 76 74 73 72 -- 71 70 69 68 67 67 65 65 64 64 63 63 62 62 61 61 59 59 58 58 57
TYPE
I I I O O O I I I I O O O O O O I I Control Bit O Control Bit O I I I I Control Bit O I I I O I O I O I O I O I O I O I O I O
92 of 107
FUNCTION
Digital POS Factory Test Signal Digital NEG Factory Test Signal Digital CLK Factory Test Signal Digital POS Factory Test Signal Digital NEG Factory Test Signal Digital CLK Factory Test Signal Factory Test Enable 1 Factory Test Enable 2 LIU Master Clock Transmit Formatter Clock Input Receive Framer Clock Output Receive Framer Data Output Receive Framer Data-Enable Output Receive Framer Start-of-Frame Pulse Receive Framer Loss-of-Frame Pulse Receive Framer Loss-of-Signal Output Receive Framer Manual Error-Counter Update Transmit Formatter Data Input Enable for the Framer Outputs Transmit Formatter Data-Enable Output Enable for the FTSOF Transmit Formatter Start-of-Frame Pulse Transmit Formatter Start-of-Frame Pulse Transmit Formatter Manual Error Insert Pulse CPU Bus Mode Select CPU Bus Intel/Motorola Bus Select CINT_N Enable CPU Bus Interrupt CPU Bus Write Enable CPU Bus Read Enable CPU Bus Chip Select CPU Bus Data Bit 15 CPU Bus Data Bit 15 CPU Bus Data Bit 14 CPU Bus Data Bit 14 CPU Bus Data Bit 13 CPU Bus Data Bit 13 CPU Bus Data Bit 12 CPU Bus Data Bit 12 CPU Bus Data Bit 11 CPU Bus Data Bit 11 CPU Bus Data Bit 10 CPU Bus Data Bit 10 CPU Bus Data Bit 9 CPU Bus Data Bit 9 CPU Bus Data Bit 8 CPU Bus Data Bit 8 CPU Bus Data Bit 7
DS3160 BIT
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
SYMBOL
CDI[7] CDO[6] CDI[6] CDO[5] CDI[5] CDO[4] CDI[4] CDO[3] CDI[3] CDO[2] CDI[2] CDO[1] CDI[1] CD_ENA_N CDO[0] CDI[0] CA[7] CA[6] CA[5] CA[4] CA[3] CA[2] CA[1] CA[0] CALE HIZ_N TEST_N RST_N LCLKI LNEGI LPOSI LCLKO LNEGO TO_ENA_N LPOSO
PIN
57 56 56 55 55 54 54 53 53 51 51 50 50 -- 49 49 47 46 45 44 43 42 41 40 39 28 27 26 17 16 15 8 7 -- 6
TYPE
I O I O I O I O I O I O I Control Bit O I I I I I I I I I I I I I I I I O O Control Bit O
FUNCTION
CPU Bus Data Bit 7 CPU Bus Data Bit 6 CPU Bus Data Bit 6 CPU Bus Data Bit 5 CPU Bus Data Bit 5 CPU Bus Data Bit 4 CPU Bus Data Bit 4 CPU Bus Data Bit 3 CPU Bus Data Bit 3 CPU Bus Data Bit 2 CPU Bus Data Bit 2 CPU Bus Data Bit 1 CPU Bus Data Bit 1 CPU Data Bus in Tri-State Operation CPU Bus Data Bit 0 CPU Bus Data Bit 0 CPU Bus Address Bit 7 CPU Bus Address Bit 6 CPU Bus Address Bit 5 CPU Bus Address Bit 4 CPU Bus Address Bit 3 CPU Bus Address Bit 2 CPU Bus Address Bit 1 CPU Bus Address Bit 0 CPU Bus Address Latch Enable Tri-State Output Pins Enable Factory Test Input Reset LIU CLK Factory Test Signal LIU NEG Factory Test Signal LIU POS Factory Test Signal LIU CLK Factory Test Signal LIU NEG Factory Test Signal Enable for the Test Outputs LIU POS Factory Test Signal
93 of 107
DS3160
10. TEST REGISTERS
Register Name: Register Description: Register Address: TEST1, TEST2, TEST3, TEST4 Test Registers 1 to 4 40 to 46
Test Registers 1 through 4 are used to verify device operation during the DS3160 manufacturing process. These registers should never be written to during normal operation. A device reset forces the register contents to the correct operating values.
94 of 107
DS3160
11. AC CHARACTERISTICS ABSOLUTE MAXIMUM RATINGS*
Voltage Range on Any Pin with Respect to VSS (Except VDD) Supply Voltage (VDD) Range with Respect to VSS Operating Temperature Range Storage Temperature Range Soldering Temperature -0.3V to +5.5V -0.3V to +3.63V 0C to +70C -55C to +125C See IPC/JEDEC J-STD-020A
*This is a stress rating only and functional operation of the device at these or any other conditions beyond those indicated in the operation sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods of time can affect reliability. Note: The typical values listed below are not production tested.
RECOMMENDED DC OPERATING CONDITION
PARAMETER Logic 1 Logic 0 Supply (VDD) SYMBOL VIH VIL VDD MIN 2.0 -0.3 3.135
(0C to +70C for DS3160) (0C to +85C for DS3160C01) (-40C to +85C for DS3160N) TYP MAX UNITS NOTES 5.5 V +0.8 3.465 V V
DC CHARACTERISTICS
DS3160)
(VDD = 3.135V to 3.465V, 0C to +70C for (VDD = 3.135V to 3.465V, 0C to +85C for DS3160C01) (VDD = 3.135V to 3.465V, (-40C to +85C for DS3160N) SYMBOL MIN TYP MAX UNITS NOTES IDD CIO IIL IILP ILO IOH IOL -10 -500 -10 -4.0 +1.0 150 7 +10 +500 +10 mA pF A A A mA mA 2 2 3 1
PARAMETER Supply Current at VDD = 3.465V Lead Capacitance Input Leakage Input Leakage (with Pullups) Output Leakage Output Current (2.4V) Output Current (0.4V)
NOTES:
1) FTCLK = FRCLK = 6.312MHz/other inputs at VDD or grounded/other outputs left open-circuited. 2) 0V < VIN < VDD. 3) Outputs in tri-state.
95 of 107
DS3160
AC CHARACTERISTICS--FRAMER PORTS
(VDD = 3.135V to 3.465V, 0C to +70C for DS3160) (VDD = 3.135V to 3.465V, 0C to +85C for DS3160C01) (VDD = 3.135V to 3.465V, -40C to +85C for DS3160N) SYMBOL MIN TYP MAX UNITS NOTES t1 158.43 ns 1 t2 t3 t4 63 63 3 ns ns ns 2
PARAMETER FRCLK/FTCLK Clock Period FTCLK Clock Low Time FTCLK Clock High Time FTD/FTSOF Setup Time to the Rising Edge or Falling Edge of FTCLK (Note 4) FTD/FTSOF Hold Time from the Rising Edge or Falling Edge of FTCLK (Note 4) Delay from the Rising Edge or Falling Edge of FRCLK/FTCLK to Data Valid on FRDEN/FRD/ FRSOF/FTDEN/FTSOF (Note 5) Delay from the Rising Edge or Falling Edge of FTCLK to FTDEN (FTDEN in Gapped Clock Mode) Delay from the Rising Edge or Falling Edge of Gapped Clock to FRD, FRSOF, FTSOF
t5
3
ns
2
t6
3
25
ns
3
t7 t8
0 2
23
ns ns
NOTES:
1) FRCLK is a buffered version of the recovered LIU clock (RCLK) or FTCLK when in diagnostic loopback mode (DLB is enabled), and, as such, the duty cycle of FRCLK is determined by the source clock. 2) FTSOF is configured to be an input. 3) FTSOF is configured to be an output. 4) In normal mode, FTD (and FTSOF, if it is configured as an input) is sampled on the rising edge of FTCLK, and FRDEN, FRD, FRSOF, FTDEN (and FTSOF, if it is configured as an output) are updated on the rising edge of FRCLK or FTCLK. 5) In inverted mode, FTD (and FTSOF, if it is configured as an input) is sampled on the falling edge of FTCLK, and FRDEN, FRD, FRSOF, FTDEN (and FTSOF if it is configured as an output) are updated on the falling edge of FRCLK or FTCLK.
96 of 107
DS3160
Figure 11A. FRAMER PORT AC TIMING DIAGRAM
t1 t2
FRCLK/FTCLK NORMAL MODE
t3
FRCLK/FTCLK INVERTED MODE
t4
FTD/FTSOF INPUT MODE
t5
t6
FRD/FRDEN/ FRSOF/FTSOF/ FTDEN
t7
FTDEN GAP CLOCK MODE
FRDEN/FTDEN GAP CLOCK MODE FRDEN/FTDEN GAP CLOCK MODE, INVERTED
t8
FRD/FRSOF/ FTSOF
97 of 107
DS3160
AC CHARACTERISTICS--CPU BUS
(VDD = 3.135V to 3.465V, 0C to +70C for DS3160) (VDD = 3.135V to 3.465V, 0C to +85C for DS3160C01) (VDD = 3.135V to 3.465V, -40C to +85C for DS3160N) SYMBOL MIN TYP MAX UNITS NOTES t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 0 2 65 10 2 5 75 10 10 30 0 0 0 65 ns ns ns ns ns ns ns ns ns ns ns ns ns ns 2 2 2 2 1
PARAMETER Setup Time for CA[7:0] Valid to CCS Active Setup Time for CCS Active to Either CRD , CWR , or CDS Active Delay Time from Either CRD or CDS Active to CD[15:0] Valid Hold Time from Either CRD , CWR , or CDS Inactive to CCS Inactive Hold Time from CCS or CRD Inactive to CD[15:0] Tri-State Wait Time from Either CWR or CDS Active to Latch CD[15:0] CD[15:0] Setup Time to Either CWR or CDS Inactive CD[15:0] Hold Time from Either CWR or CDS Inactive CA[7:0] Hold from Either CRD , CWR , or CDS Inactive
CRD , CWR , or CDS
Inactive Time
Muxed Address Valid to CALE Falling Muxed Address Hold Time CALE Pulse Width Setup Time for CALE High or Muxed Address Valid to CCS Active
NOTES:
1) Data on CD15:0 must be valid for the minimum time period. 2) In multiplexed bus applications (Figure 12E), CA[7:0] should be connected to CD[7:0] and the falling edge of CALE latches the address. 3) In nonmultiplexed bus applications (Figure 12D), CALE should be connected high.
98 of 107
DS3160
Figure 11B. CPU BUS AC TIMING DIAGRAM (NONMULTIPLEXED) Intel Read Cycle
t9 CA[7:0]
ADDRESS VALID
CD[15:0]
DATA VALID
t5 CR /W
t1
CCS
t2
t3
t4 t10
CDS
Intel Write Cycle
t9 CA[7:0]
ADDRESS VALID
CD[15:0] t7 CR /W t1
CCS
t8
t2
CDS
t6
t4 t10
99 of 107
DS3160
Figure 11B. CPU BUS AC TIMING DIAGRAM (NONMULTIPLEXED) (continued) Motorola Read Cycle
t9 CA[7:0]
ADDRESS VALID
CD[15:0]
DATA VALID
t5 CR /W t1
CCS
t2
t3
t4 t10
CDS
Motorola Write Cycle
t9 CA[7:0]
ADDRESS VALID
CD[15:0] t7 t1
CCS
CR /W
t8
t2
CDS
t6
t4 t10
100 of 107
DS3160
Figure 11C. CPU BUS AC TIMING DIAGRAM (MULTIPLEXED) Intel Read Cycle
t13 CALE t12 t11
ADDRESS VALID
CA[7:0]
t14 CD[15:0] t14
DATA VALID
t5
CR /W
t1
CCS
t2
t3
t4 t10
CDS
Note: t14 starts on the occurrence of either the rising edge of CALE or a valid address, whichever occurs first.
Intel Write Cycle
t13 CALE t11 CA[7:0]
ADDRESS VALID
t12
t14 CD[15:0] t14 t7 CR /W t1
CCS
t8
t2
CDS
t6
t4 t10
Note: t14 starts on the occurrence of either the rising edge of CALE or a valid address, whichever occurs first.
101 of 107
DS3160
Figure 11C. CPU BUS AC TIMING DIAGRAM (MULTIPLEXED) (continued) Motorola Read Cycle
t13 CALE t12 t11
ADDRESS VALID
CA[7:0]
t14
DATA VALID
CD[15:0]
t14
t5
CR /W
t1
CCS
t2
t3
t4 t10
CDS
Note: t14 starts on the occurrence of either the rising edge of CALE or a valid address, whichever occurs first.
Motorola Write Cycle
t13 CALE t12 t11
ADDRESS VALID
CA[7:0]
t14 CD[15:0] t14 t7 CR /W t1 t8
CCS
t2
t6
t4 t10
CDS
Note: t14 starts on the occurrence of either the rising edge of CALE or a valid address, whichever occurs first.
102 of 107
DS3160
AC CHARACTERISTICS--JTAG TEST PORT INTERFACE
(VDD = 3.135V to 3.465V, 0C to +70C for DS3160) (VDD = 3.135V to 3.465V, 0C to +85C for DS3160C01) (VDD = 3.135V to 3.465V, -40C to +85C for DS3160N) SYMBOL MIN TYP MAX UNITS NOTES t1 1000 ns t2 400 ns t3 400 ns t4 t5 t6 50 50 2 50 ns ns ns
PARAMETER JTCLK Clock Period JTCLK Clock Low Time JTCLK Clock High Time JTMS/JTDI Setup Time to the Rising Edge of JTCLK JTMS/JTDI Hold Time from the Rising Edge of JTCLK Delay Time from the Falling Edge of JTCLK to Data Valid on JTDO
Figure 11D. JTAG TEST PORT INTERFACE AC TIMING DIAGRAM
t2 JTCLK t4 JTMS/JTDI t6 JTDO t5 t1 t3
103 of 107
DS3160
AC CHARACTERISTICS--RESET AND MANUAL ERROR COUNTER/ INSERT SIGNALS
(VDD = 3.135V to 3.465V, 0C to +70C for DS3160) (VDD = 3.135V to 3.465V, 0C to +85C for DS3160C01) (VDD = 3.135V to 3.465V, -40C to +85C for DS3160N) SYMBOL MIN TYP MAX UNITS NOTES t1 1000 ns t2 t3 200 200 ns ns
PARAMETER RST Low Time FRMECU/FTMEI High Time FRMECU/FTMEI Low Time
Figure 11E. RESET AND MANUAL ERROR COUNTER/INSERT AC TIMING DIAGRAM
t1
RST
t2 FRMECU/ FTMEI
t3
104 of 107
DS3160
12. MECHANICAL DIMENSIONS
105 of 107
DS3160
13. J2 FRAME FORMAT
The DS3160 supports the G.704 and NTT J2 frame format. Highlights of the J2 structure include the following: The J2 format is frame based. Each frame contains 96 bytes of user data, two reserved bytes, and five overhead bits for a total of 789 bits. The five overhead bits are designated as F-bits and are used for frame alignment, path CRC, and data link. The frame rate is 8000 per second or 125ms long. 789 bits per frame / 125ms per frame = 6.312Mbps line rate. The frames are grouped into four formatted multiframes.
Figure 13A. J2 FRAME STRUCTURE
Bit #
Frame 1 Frame 2 Frame 3 Frame 4
1-8 TS1 TS1 TS1 TS1
9-16 17-24 TS2 TS2 TS2 TS2 TS3 TS3 TS3 TS3
753- 761- 769- 777-- 785 760 768 776 784 TS95 TS96 TS95 TS96 TS95 TS96 TS95 TS96 TS97 TS98 TS97 TS98 TS97 TS98 TS97 TS98 1 1 x1 e1
786 1 0 x2 e2
787 0 1 x3 e3
788 0 0 a e4
789 m 0 m e5
FRAME COMPONENT TS1 . . . TS96 TS97, TS98 Frame Alignment Signal m x1, x2, x3 a e1 . . . e5
DEFINITION Byte interleaved user data Reserved channels for signaling 110010100 (See Figure 13A for location.) 4kHz data link Spare bits, set to 1 if not used Remote LOF alarm bit, (1 = alarm, 0 = no alarm) CRC-5 check sequence. Starts with bit number 1 of frame 1 and ends at bit number 784 of frame 4 for a total of 3151 bits.
106 of 107
DS3160
14. PROGRAMMING GUIDE AND OPERATIONAL NOTES 14.1 Power-Up/Reset Discussion
The DS3160 can be reset as a result of three actions: Detection of a power transition by the on-chip supply supervisor Through hardware by toggling the RST device pin Through software by setting the RST pin located in the MRID register When a reset is issued, all of the internal registers are forced to their default states. A DS3160 status read immediately after a reset indicates the following: MSR:LOTC set and then immediately cleared if the clock is present. MSR:LIULOS set SR1:LOS set SR1:LOF set BERTECO:RLOS set HSR:TLWM set HSR:TEMPTY and REMPTY set Also, because of the reset, FRD is forced to all 1's as a result of the LOS and the transmit, Rx monitor, and Tx monitor ports are tri-stated. The recommended power-up sequence is (assuming the DS3160 has received a reset): 1) Wait 100ms after valid power. 2) Configure LIU, framer, and formatter. 3) Read status registers to clear transient history. 4) Read status registers for valid status. 5) Enable interrupts if used. 6) Optionally enable transmit, Rx monitor, and Tx monitor ports. Device behavior notes after a power-up or a reset: Connecting to an active valid line - LOS and LOF are set - LOS clears - LOF clears Connecting to a line receiving AIS - LOS and LOF are set - LOS clears - LOF remains set - AIS becomes set Connecting to a line receiving RAI - LOS and LOF are set - LOS and LOF clear - RAI becomes set Connecting to a line receiving an unframed signal - LOS and LOF are set - LOS clear - LOF remains set - Connecting to a dead line - LOS and LOF are set - LOS and LOF remain set
107 of 107


▲Up To Search▲   

 
Price & Availability of DS3160

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X